Skip to content

Instantly share code, notes, and snippets.

@benphelps
Created January 20, 2014 02:00
Show Gist options
  • Save benphelps/8513726 to your computer and use it in GitHub Desktop.
Save benphelps/8513726 to your computer and use it in GitHub Desktop.
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