started refactoring irc_bot to improve clarity and speed