rewrite irc bot for osx, linux and windows