Add error and ping handling to the IRC bot.