Skip to content

Instantly share code, notes, and snippets.

@dblevins
Created July 31, 2009 01:12
Show Gist options
  • Save dblevins/159030 to your computer and use it in GitHub Desktop.
Save dblevins/159030 to your computer and use it in GitHub Desktop.
SLASH_HELLOWORLD1, SLASH_HELLOWORLD2 = '/hiw', '/hellow';
local function handler(msg, editbox)
if msg == 'bye' then
print('Goodbye, World!');
else
print("Hello, World!");
end
end
SlashCmdList["HELLOWORLD"] = handler; -- Also a valid assignment strategy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment