collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: need some stuff :P  (Read 2237 times)

0 Members and 1 Guest are viewing this topic.

Offline Pharexys

  • BeBot Apprentice
  • ***
  • Posts: 117
  • Karma: +0/-0
need some stuff :P
« 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..



Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: need some stuff :P
« Reply #1 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;
        }
Eternalist
General of The Syndicate

Offline Pharexys

  • BeBot Apprentice
  • ***
  • Posts: 117
  • Karma: +0/-0
Re: need some stuff :P
« Reply #2 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

Offline Naturalistic

  • Contributor
  • *******
  • Posts: 221
  • Karma: +0/-0
Re: need some stuff :P
« Reply #3 on: April 02, 2006, 06:23:21 pm »
Did you edit the setup files?
220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php

Offline Pharexys

  • BeBot Apprentice
  • ***
  • Posts: 117
  • Karma: +0/-0
Re: need some stuff :P
« Reply #4 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

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 159
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal