refactor the irc bot, in preparation for other IM status backends