BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Age of Conan Archive => BeBot Hyborian support => Topic started by: cyberkov on August 28, 2008, 05:22:02 pm
-
Hello :)
The server load goes very high when the AoC Servers are offline (like down for maintenance).
So I added a sleep to Bot.php which might be a good idea to add to the svn version if that is possible.
cyberkov:~/sources/bebot-aoc/Sources# svn diff Bot.php
Index: Bot.php
===================================================================
--- Bot.php (Revision 28)
+++ Bot.php (Arbeitskopie)
@@ -390,7 +390,9 @@
// Open connection
$this -> log("LOGIN", "STATUS", "Connecting");
- $this -> aoc -> connect($server, $port);
+ while (!$this -> aoc -> connect($server, $port)) {
+ sleep(30);
+ }
// Authenticate
$this -> log("LOGIN", "STATUS", "Authenticating");
so long
cyb
-
Implemented a similar fix.
Though I think the bot should be waiting already if you didn't set the reconnect delay to 0. If it is set to 0 my fix won't help in this case either as I'm using the same timeout.
PS: I've added the fix to the official main bebot svn. Not sure what's the status on the aoc svn is.