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

Title: 4.2 and IRC
Post 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'
Title: Re: 4.2 and IRC
Post by: Alreadythere on October 02, 2007, 10:48:38 pm
Fixed in SVN and updated release packages.
Title: Re: 4.2 and IRC
Post by: Dracutza on October 02, 2007, 11:14:27 pm
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
Title: Re: 4.2 and IRC
Post by: Alreadythere on October 02, 2007, 11:20:43 pm
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.
Title: Re: 4.2 and IRC
Post by: Temar on October 03, 2007, 02:35:04 am
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
Code: [Select]
$this -> startup = TRUE;

Code: [Select]
function connect()
{
$this -> bot -> cron["1sec"]["irc"] = &$this;
}

Code: [Select]
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
Title: Re: 4.2 and IRC
Post by: Dracutza on November 17, 2007, 04:13:21 am
its doing it again  ???
Title: Re: 4.2 and IRC
Post by: Dracutza on November 17, 2007, 04:21:06 am
and again, 3 restarts and it works.

odd
Title: Re: 4.2 and IRC
Post by: Temar on November 17, 2007, 04:36:38 am
did you try my fix?
Title: Re: 4.2 and IRC
Post by: Dracutza on November 19, 2007, 03:28:37 pm
which file do i edit?
Title: Re: 4.2 and IRC
Post by: Temar on November 19, 2007, 05:34:10 pm
modules/IRC.php
Title: Re: 4.2 and IRC
Post by: Trancillion on December 10, 2007, 11:17:02 am
Code: [Select]
$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 .
Title: Re: 4.2 and IRC
Post by: Temar on December 10, 2007, 04:05:23 pm
in function irc()
SimplePortal 2.3.7 © 2008-2024, SimplePortal