BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => AO 0.6 support => Topic started by: Dochere on August 23, 2010, 07:41:00 pm

Title: Can bebot act on commands in a private channel by another bot?
Post by: Dochere on August 23, 2010, 07:41:00 pm
Subject pretty much says it all.


Can bebot act on commands in a private channel?


This is the deal, im working on a project to make my raidbot more stable, by doing so i will run 1 bot as a host. All this bot ever does is host channel. And invite people. A second bot then act as bot normally does except for the fact that its not the hosting bot that will act on commands.


And broken down, to easiest explanation.

Bot 1 = Act as Org.
bot 2 = Act as Orgbot.
Title: Re: Can bebot act on commands in a private channel by another bot?
Post by: Dochere on August 23, 2010, 09:28:38 pm
Yes it can with modifications :)


Hers some sample code.


Add this to construct:

Code: [Select]
$this -> register_command("extpgmsg", "command", "MEMBER");
Add this function:
Code: [Select]
function extpgmsg($pgroup, $name, $msg) {
$this -> command_handler($name, $msg, $pgroup);
}

And modify outputs to:
Code: [Select]
$this -> bot -> send_pgroup("My message"), $type);

So yeah its A LOT of work. Atleast when i have many modules to do this with. But in the end its going to be worth it :)


SimplePortal 2.3.7 © 2008-2024, SimplePortal