SLASH_GORP1 = "/gorp"; SlashCmdList["GORP"] = function(msg) local tag = string.lower(msg); local info = ChatTypeInfo["SYSTEM"]; ChatFrame2:AddMessage("Hello World", info.r, info.g, info.b, info.id); end function Gorp_OnLoad() local info = ChatTypeInfo["SYSTEM"]; ChatFrame2:AddMessage("Gorp OnLoad handler", info.r, info.g, info.b, info.id); this:RegisterEvent("PLAYER_SIT"); end function Gorp_OnEvent(event, arg1, arg2, arg3) local info = ChatTypeInfo["SYSTEM"]; ChatFrame2:AddMessage("No sitting down on the job!", info.r, info.g, info.b, info.id); end