Mine
public lua v1 · immutablefunction addon:OnInitialize() self:RegisterChatCommand({'/addon', '/ao'}, { { type="group", name="addon", desc="My addons commands", args= { dosomething = { type = "execute", name = "Do something.", desc = "Makes this addon do something.", func = "MethodCalled", }, }, })endfunction addon:MethodCalled() -- this function will be called when the user types either -- '/addon dosomething' or '/ao dosomething' self:Print("Doing something!")end