L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 01:30:31 AM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > BeBot 0.4 support > Topic: 4.2 and IRC
Pages: [1]   Go Down
« previous next »
Print
Author Topic: 4.2 and IRC  (Read 581 times)
0 Members and 1 Guest are viewing this topic.
Dracutza
Apprentice
***
Offline Offline

Posts: 126


4.2 and IRC
« on: October 02, 2007, 03: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'
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: 4.2 and IRC
« Reply #1 on: October 02, 2007, 03:48:38 PM »

Fixed in SVN and updated release packages.
Logged
Dracutza
Apprentice
***
Offline Offline

Posts: 126


Re: 4.2 and IRC
« Reply #2 on: October 02, 2007, 04: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
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: 4.2 and IRC
« Reply #3 on: October 02, 2007, 04:20:43 PM »

Quote from: Dracutza on October 02, 2007, 04: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
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.
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: 4.2 and IRC
« Reply #4 on: October 02, 2007, 07:35:04 PM »

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:
$this -> startup = TRUE;

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

Code:
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
« Last Edit: October 02, 2007, 07:39:03 PM by Temar » Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Dracutza
Apprentice
***
Offline Offline

Posts: 126


Re: 4.2 and IRC
« Reply #5 on: November 16, 2007, 10:13:21 PM »

its doing it again  Huh
Logged
Dracutza
Apprentice
***
Offline Offline

Posts: 126


Re: 4.2 and IRC
« Reply #6 on: November 16, 2007, 10:21:06 PM »

and again, 3 restarts and it works.

odd
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: 4.2 and IRC
« Reply #7 on: November 16, 2007, 10:36:38 PM »

did you try my fix?
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Dracutza
Apprentice
***
Offline Offline

Posts: 126


Re: 4.2 and IRC
« Reply #8 on: November 19, 2007, 09:28:37 AM »

which file do i edit?
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: 4.2 and IRC
« Reply #9 on: November 19, 2007, 11:34:10 AM »

modules/IRC.php
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Trancillion
Rookie
**
Offline Offline

Gender: Male
Posts: 20


Re: 4.2 and IRC
« Reply #10 on: December 10, 2007, 05:17:02 AM »

Code:
$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 .
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: 4.2 and IRC
« Reply #11 on: December 10, 2007, 10:05:23 AM »

in function irc()
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > BeBot 0.4 support > Topic: 4.2 and IRC
« previous next »
 
Jump to:  

Recent
[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]

Bot not see Guild Chat
by Delvar
[November 28, 2008, 08:30:34 AM]

Starting Bot
by Allisande
[November 28, 2008, 07:08:21 AM]
Stats
Members
Total Members: 1243
Latest: Whackoeng
Stats
Total Posts: 11144
Total Topics: 1505
Online Today: 8
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 14
Total: 15
Whackoeng

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.191 seconds with 28 queries. (Pretty URLs adds 0.038s, 4q)
Loading...