Created
January 20, 2014 02:00
-
-
Save benphelps/8513726 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ProbablyEngine.command.register('soapbox', function(message) | |
local command, text = msg:match("^(%S*)%s*(.-)$") | |
-- handle the command here, everything after the first space | |
-- is inside the text variable | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment