IRCBot class refactored to be used as a standalone object