BeBot - An Anarchy Online and Age Of Conan chat automaton

General => General discussion => Topic started by: Dochere on December 07, 2009, 01:47:31 pm

Title: Channels, monitoring other channels?
Post by: Dochere on December 07, 2009, 01:47:31 pm
I'm pretty sure subject says it all.


If not, how can i make bot monitor all channels, or can i set bot to monitor a specific channel?
Title: Re: Channels, monitoring other channels?
Post by: Alreadythere on December 09, 2009, 10:20:42 am
You add channels by name as a gmsg event, like $this -> register_event("gmsg", "Org Msg"). Just make sure you find the exact name.

Then you need to add a gmsg() functions.

For an example of that check out the tower module (http://bazaar.launchpad.net/~bebot-devel/bebot/stable-0.6/annotate/head%3A/modules/ao/TowerAttack.php).
Title: Re: Channels, monitoring other channels?
Post by: Dochere on December 10, 2009, 01:33:10 am
Aah nice, thanks!
SimplePortal 2.3.7 © 2008-2024, SimplePortal