fix bugs and now can work with irc bot