BeBot - An Anarchy Online and Age Of Conan chat automaton

Development => Coding and development discussion => Topic started by: sonzo on May 23, 2006, 07:33:40 pm

Title: Message in Other groups
Post by: sonzo on May 23, 2006, 07:33:40 pm
Hi

i found out that there is a method to fetch all the incomming messages from other channels

$commands["gmsg"]["group"][] = &$thisClass;

but i cant find a way to let him work the way i want. The finish should be look like that all the messages which are comming from the Shop channels in oa are parsed into the data base and posted beside the needs of the giuild members in the gc.

But how did i set up the group param correctly? tryed "Clan OOC" with no luck. And another point is which is about the last [] ist there possible to set up the command like it would be with guild chat etc?

thx for help
Title: Re: Message in Other groups
Post by: Xenixa on May 24, 2006, 03:42:18 am
If you want the bot to see a shopping channel or clan ooc use:

$commands['gmsg']['Clan OOC'][] = &$thisClass;

Make sure you set up the logging using the $this -> bot -> log() function in bot.php so you see it echo'd on the monitor .

As for the last part you're asking about I'm not quite sure what you're getting at. BTW, just because a bot can access a channel to listin in doesn't mean you can let it speak in that channel. Open public chat channels are off limits, it will get kicked if someone /petitions a bot broadcasting in a public channel like OOC or Shopping channels.
SimplePortal 2.3.7 © 2008-2024, SimplePortal