haoNoQ/nullbot — pull request #3 by Cjkjvfnby (2013-01-27 18:49:14+00:00)
Title: Move chat events handler to chat module. Rewrite binding commands.

Hi,
This is my idea how chat module should looks like.

I move all chat related code to chat.js. Make only one global function handleChatEvent. Selection wtat to do with message should be in chat module.

Put all chat handlers to local scope.

Rewrite binding function to chat command. To add new command you need write function and add it to commandMap