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

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

Author Topic: another Teamspeak module  (Read 7617 times)

0 Members and 1 Guest are viewing this topic.

Offline mookie

  • BeBot User
  • **
  • Posts: 27
  • Karma: +0/-0
Re: another Teamspeak module
« Reply #15 on: March 03, 2007, 08:09:49 am »
Anyone get this Module to work? This command !ts is not working on 0.3.3 / v5 php.

Offline exxie

  • BeBot User
  • **
  • Posts: 25
  • Karma: +0/-0
Re: another Teamspeak module
« Reply #16 on: March 03, 2007, 02:03:03 pm »
don't know if it's working with version 0.3.x of bebot but this is a bebot 0.2.x module therefore i posted it in the 0.2.x Custom/Unofficial Modules section :)
also i'm running php4 on my server so i don't have tested it with php5.

Offline Ozball

  • BeBot Rookie
  • *
  • Posts: 15
  • Karma: +0/-0
Re: another Teamspeak module
« Reply #17 on: March 04, 2007, 01:01:27 am »
for the record im using 0.2.11 and php5 i think(which ever PHP comes in the files on the front page with 0.2.11)
Slynthia - General and Botmaster of Terminal Velocity - RK1

Offline exxie

  • BeBot User
  • **
  • Posts: 25
  • Karma: +0/-0
Re: another Teamspeak module
« Reply #18 on: March 04, 2007, 02:43:48 pm »
i will test it with bebot 0.3.x and php5 and get back to you with the results as soon as i have the time fo it.

Offline exxie

  • BeBot User
  • **
  • Posts: 25
  • Karma: +0/-0
Re: another Teamspeak module
« Reply #19 on: March 06, 2007, 10:24:35 pm »
because there's no way to get bebot running with php5 under windows and i don't get php5-cgi to work with bebot on my linux-server, i can't test it with php5. sorry guys :-(

Offline mookie

  • BeBot User
  • **
  • Posts: 27
  • Karma: +0/-0
Re: another Teamspeak module
« Reply #20 on: March 08, 2007, 03:25:11 am »
ok, guess they We should ingnore http://svn.shadow-realm.org/index.py/BeBot/branches/BeBot-php/
and windows Php ports.
Sorry to say, PHP is easy to run on windows.

good work otherwise. I will have to play around with your code some more. I am sure its some class reference. Did you modify anything in Bot.php?


Offline Ozball

  • BeBot Rookie
  • *
  • Posts: 15
  • Karma: +0/-0
Re: another Teamspeak module
« Reply #21 on: March 08, 2007, 06:31:37 am »
I just unzipped the files from the php bundle link on the home page of this site, into the root dir of my bot and that was all the php i needed. I run Win XP Pro.
Slynthia - General and Botmaster of Terminal Velocity - RK1

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: another Teamspeak module
« Reply #22 on: March 10, 2007, 12:07:34 am »
because there's no way to get bebot running with php5 under windows and i don't get php5-cgi to work with bebot on my linux-server, i can't test it with php5. sorry guys :-(

Since when? BeBot is currently ONLY tested with php5 on windows. The current php bundle for BeBot is PHP 5.2.1
BeBot Founder and Fixer Kingpin

Offline exxie

  • BeBot User
  • **
  • Posts: 25
  • Karma: +0/-0
Re: another Teamspeak module
« Reply #23 on: March 16, 2007, 02:28:42 pm »
Since when? BeBot is currently ONLY tested with php5 on windows. The current php bundle for BeBot is PHP 5.2.1

i get the error message

[LOGIN] [STATUS]        Authenticateing
AOChat: not expecting authentication.


everytime i start the bot.

i tried every tip written in the forums to get rid of this error but none of them worked. Xenixa wrote in this thread here to use php4. but that's obviously not what i want :-/

Offline Vhab

  • Contributor
  • *******
  • Posts: 180
  • Karma: +0/-0
    • VhaBot Forum
Re: another Teamspeak module
« Reply #24 on: March 16, 2007, 06:55:55 pm »
Which version of php5, which version of bebot, which cpu platform?

Offline exxie

  • BeBot User
  • **
  • Posts: 25
  • Karma: +0/-0
Re: another Teamspeak module
« Reply #25 on: March 20, 2007, 03:00:03 pm »
Which version of php5, which version of bebot, which cpu platform?

sorry for my late response :-/

here you go:

php: 5.4.1 (the version from the bebot 0.3.3 release thread)
bebot: 0.3.3 (see above)
cpu/os: amd, windows xp pro

i'm using the aokex.dll for windows as stated here and tried AOChat.php version 1.19 from Auno's website, the one which came with bebot 0.3.3, as well as Xenixa's modified 1.17. none of them worked, i always get the same error with all versions.

Offline exxie

  • BeBot User
  • **
  • Posts: 25
  • Karma: +0/-0
Re: another Teamspeak module
« Reply #26 on: March 29, 2007, 04:47:19 pm »
mh ... i used a remote mysql-database when i started the bot. when i use my local database (on the same machine as the bot) there's no error message. strange ...

Offline exxie

  • BeBot User
  • **
  • Posts: 25
  • Karma: +0/-0
Re: another Teamspeak module
« Reply #27 on: March 30, 2007, 09:03:43 pm »
Code: [Select]
$Teamspeak = new Teamspeak($bot);

$commands["tell"]["ts"] = &$Teamspeak;
$commands["gc"]["ts"] = &$Teamspeak;
$commands["pgmsg"]["ts"] = &$Teamspeak;

class Teamspeak {
var $bot;

/*
Constructor:
Hands over a referance to the "Bot" class.
*/
function Teamspeak (&$bot) {
$this -> bot = &$bot;
$this -> bot -> Teamspeak = &$this;
}

/*
This gets called on a tell with the command
*/
function tell($name, $msg) {
if (preg_match("/^" . $this -> bot -> commpre . "ts add (.+)/i", $msg, $info))
$this -> bot -> send_tell($name, $this -> add_tsserver($name, $info[1]));
elseif (preg_match("/^" . $this -> bot -> commpre . "ts del ([0-9]+)/i", $msg, $info))
$this -> bot -> send_tell($name, $this -> del_tsserver($name, $info[1]));
elseif (preg_match("/^" . $this -> bot -> commpre . "ts default ([0-9]+)/i", $msg, $info))
$this -> bot -> send_tell($name, $this -> set_tsserver($name, $info[1]));
elseif (preg_match("/^" . $this -> bot -> commpre . "ts list/i", $msg, $info))
$this -> bot -> send_tell($name, $this -> list_tsserver($name));
elseif (preg_match("/^" . $this -> bot -> commpre . "ts(?: *)([0-9]*)/i", $msg, $info))
$this -> bot -> send_tell($name, $this -> show_tsstatus($info[1]));
}

        /*
          ...
        */
}

testing the module with full error_reporting i get these messages:

Notice: Trying to get property of non-object in Teamspeak.php on line 57
Notice: Trying to get property of non-object in Teamspeak.php on line 59
Notice: Trying to get property of non-object in Teamspeak.php on line 61
Notice: Trying to get property of non-object in Teamspeak.php on line 63
Notice: Trying to get property of non-object in Teamspeak.php on line 65
Fatal error: Call to a member function send_tell() on a non-object in Teamspeak.php on line 66

the lines 57, 59, 61, 63, 65 are the ones with $this -> bot -> commpre . ... and line 66 ist the line with $this -> bot -> send_tell().
seems that the script cannot access the bot-object and its methods but i don't know why. according to google it's a problem with the new php5 object model and ppl recommend to use php4 instead ...

any ideas?
« Last Edit: March 30, 2007, 09:18:48 pm by exxie »

 

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


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


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


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 691
  • 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