ircbot: refactor and more features