BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Anarchy Online Archive => BeBot 0.4 support => Topic started by: Dracutza on October 02, 2007, 10:35:08 pm
-
[SETTINGS] [UPDATE] Set longdesc for setting [Irc][AnnounceWhat] to which events should be announced to irc? none, only buddies logging on, only joins to the chatgroup or both?
MySQL error (# 2) on query: UPDATE pobot_settings SET defaultoptions = 'none;bud
dies;joins;both' WHERE module = Irc AND setting = AnnounceWhat
Unknown column 'Irc' in 'where clause'
-
Fixed in SVN and updated release packages.
-
I still get this after every restart
Pobot [2007-10-02 21:06:13] [SETTINGS] [SAVED] connected for module irc set to FALSE as datatype bool
Pobot [2007-10-02 21:06:13] [SETTINGS] [UPDATE] Set longdesc for setting [Irc][AnnounceWhat] to which events should be announced to irc? none, only buddies logging on, only joins to the chatgroup or both?
Pobot [2007-10-02 21:06:13] [SETTINGS] [UPDATE] Set defaultoptions for setting [Irc][AnnounceWhat] to none;buddies;joins;both
Also... after the first two restarts, we were getting spammed by
[Paragon Order] Groovin: neat its christmas chat
[Paragon Order] Pobot: Last line not relayed to IRC as it's containing too many characters!
[Paragon Order] Vingus: ho ho ho
[Paragon Order] Pobot: Last line not relayed to IRC as it's containing too many characters!
[Paragon Order] Whiskisieppo: .
[Paragon Order] Pobot: Last line not relayed to IRC as it's containing too many characters!
But after 3rd restart, it fixed itself
-
I still get this after every restart
Pobot [2007-10-02 21:06:13] [SETTINGS] [SAVED] connected for module irc set to FALSE as datatype bool
Pobot [2007-10-02 21:06:13] [SETTINGS] [UPDATE] Set longdesc for setting [Irc][AnnounceWhat] to which events should be announced to irc? none, only buddies logging on, only joins to the chatgroup or both?
Pobot [2007-10-02 21:06:13] [SETTINGS] [UPDATE] Set defaultoptions for setting [Irc][AnnounceWhat] to none;buddies;joins;both
That's correct, the updating part is done every restart - just ignore it, it doesn't break anything.
No clue what's up with the other error though.
-
i used to have that error alot with IRC from crashes, since i make modules i crash my bot alot :p
what i did to fix was to use cron
in function IRC
$this -> startup = TRUE;
function connect()
{
$this -> bot -> cron["1sec"]["irc"] = &$this;
}
function cron()
{
if ($this -> startup)
{
$this -> startup = FALSE;
$this -> startuptime = time();
unset ($this -> bot -> cron["1sec"]["irc"]);
if ($this -> bot -> settings -> get("Irc", "Reconnect"))
$this -> irc_connect("c");
}
else if (($this -> irc != null) && (!$this -> irc -> _rawreceive()) && $this -> startuptime + 30 < time())
{
$this -> irc_disconnect();
$this -> bot -> send_gc("IRC connection lost...");
if ($this->bot->settings->get("Irc","Reconnect"))
{
$this -> bot -> cron["1sec"]["irc"] = &$this -> bot -> commands["tell"]["irc"];
$this->irc_connect();
}
}
}
altho it wont connect till 30 secs after startup it works good and i have no probs
-
its doing it again ???
-
and again, 3 restarts and it works.
odd
-
did you try my fix?
-
which file do i edit?
-
modules/IRC.php
-
$this -> startup = TRUE;
where do you place this ? can't seem to find out where. I've set in the two other things, i get it to work just fine, only thing is that it doesn't want to connect automatically to IRC. I need to use !irc connect .
-
in function irc()