Hive13 / jIRCBot

The Hive13 Chat Bot

Home Page:http://wiki.hive13.org/Hive13_IRC_Bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bot needs to reconnect when accidently disconnected.

pvince opened this issue · comments

Sometimes the bot gets into an odd state where it is disconnected from the freenode.net server, but it does not try to reconnect. There is already code in place that checks to make sure the bot is connected before it allows the bot to send messages, this code can be expanded to trigger a "Reconnect" procedure when the bot realizes it is not connected.

Caveats:

  • The "Bot is not connected" option was added to prevent a large queue of messages building up, need to preserve this functionality.
  • The "Bot is not connected" detection was also added to prevent messages being sent while the bot was actively trying to connect. I will need to make sure that the "Reconnect" procedure does not get triggered while the bot is already trying to connect.