Refactor the client with node-irc library.