for key,val in pairs(SlashCmdList) do if string.lower(_G["SLASH_"..key.."1"]) =="/slashyouwant" then val("slash command arguments") end end