1 2 3 4 5 6 7 8 9 10
local function SlashHandler(msg) local msg = msg:lower() if msg:match("keyword") then -- do stuff end end SlashCmdList.MyAddon = SlashHandler SLASH_MyAddon1 = "/myslashcommand" SLASH_MyAddon2 = "/myslashcommandtwo" SLASH_MyAddon3 = "/myslashcommandthree"