BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.2 support => Topic started by: Pharexys on April 01, 2006, 09:23:48 pm

Title: need some stuff :P
Post by: Pharexys on April 01, 2006, 09:23:48 pm
Well I changed from ign to bebot tonight,
(I run em on a windows machine with php 4.4.2)
Only problem i have at this moment is to link bots from org1 <<>> org2,
However I understood i have to get em on IRC and put em on same channel,
Well I did that.. But probly my irc moduls are wrong or something because all work fine.. cept joining channel.. It doesnt join a channel :P
I tryd all possible ways to do it(w/ #, w/o #, shorter channel name, etc), So anyone have a valid link to this irc moduls that work? or know any fix to this?

Second... Since i just changed from ign, Bebot is kinda wierd and um.. hard to understand for me now,
Howver, Any Module i get from this website or try to modify it, I get some wierd lines like:

Code: [Select]
Fatal error: Call to undefined method Bot::get_tablename() in C:\BeBot_v0.2.3\modules\Colors.php on line 11
I do understand that i have to define "get_tablename()" Probly but dunno where and how.. so tryd some like this:

I have added:

Code: [Select]
  function get_tablename($table)
        {
                return $table;
        }
in bot.php but nothing change..
I guess this is a question for Alreadythere since this modules are writed by him mostly :P
However I havent readed whole forum and didnt had alot of time to play with this bot..


Title: Re: need some stuff :P
Post by: Malosar on April 02, 2006, 05:34:12 am
Try adding this at the start of bot.php, it's something Alreadythere added in afaik for certain modules he's made and others use.

Code: [Select]
        /*
        Returns a selected setting:
        */
        function get_setting($set)
        {
                $res = $this -> db -> select("SELECT * FROM settings"
                        . " WHERE setting = '" . $set . "'");

                if (!empty($res))
                        return $res[0][1];
                else
                        return "";
        }

        function get_tablename($table)
        {
                return $table;
        }
Title: Re: need some stuff :P
Post by: Pharexys on April 02, 2006, 10:27:48 am
I tryd but still same,
well I dont really need this modules so nvm em :P
Just if any1 has the irc modules or know why it doesnt join a channel :P
Title: Re: need some stuff :P
Post by: Naturalistic on April 02, 2006, 06:23:21 pm
Did you edit the setup files?
Title: Re: need some stuff :P
Post by: Pharexys on April 03, 2006, 12:24:53 am
Did you edit the setup files?

I don't know what setup file you mean,
There is no such file.. I got the modules that come with BeBot_v0.2.3,
So if you have ones that do work.. can you zip and post em here?
I'll look on the code when i get home, maybe i can find what u meant or whats wrong there :P
SimplePortal 2.3.7 © 2008-2025, SimplePortal