cjoudrey/wobot — pull request #12 by jakajancar (2011-10-24 18:28:44+00:00)
Title: Command event

Added the "command" event, which works both on channels as well as privately.

This allows one to simply do:

bot.on 'command', (message, reply) ->
reply 'You told me to "' + message + '"'

This will make the bot accept the command both privately as well as on channels, without a separate handler.