BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.2 support => Topic started by: Snarfblatt on September 18, 2006, 06:23:20 pm

Title: IRC Reconnect
Post by: Snarfblatt on September 18, 2006, 06:23:20 pm
The bot seems to disconnect from IRC at times and the Reconnect setting doesn't ever kick in and reconnect the bot. Does the Reconnect actually work? I wish I had more specifics as to why the bot disconnects from IRC, but I haven't figured out yet what is triggering it. Any thoughts or ideas are appreciated.
Title: Re: IRC Reconnect
Post by: Khalem on September 18, 2006, 10:07:19 pm
Known issue on my ToDo list. The Reconnect setting is badly named as it should be named Autoconnect or simply irc on/off as all it does is make the bot connect on startup.
Title: Re: IRC Reconnect
Post by: Snarfblatt on September 19, 2006, 09:27:45 pm
Bummer... I guess maybe I'll dig in the code and see if I can figure out how to get it to happen.
Title: Re: IRC Reconnect
Post by: Snarfblatt on September 19, 2006, 09:37:26 pm
could I just do something like this:
function cron()
{
if (($this -> irc != null) && (!$this -> irc -> _rawreceive()))
{
$this -> irc_disconnect();
$this -> bot -> send_gc("IRC connection lost...");
                $this -> connect();

}
}


Then if we are disconnected, we try to connect again.
Title: Re: IRC Reconnect
Post by: Snarfblatt on September 19, 2006, 11:33:11 pm
Well I think I answered my own question. I tried this, then kicked the bot from IRC and it didn't try to reconnect. :(
SimplePortal 2.3.7 © 2008-2025, SimplePortal