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

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

Author Topic: Can bebot act on commands in a private channel by another bot?  (Read 3125 times)

0 Members and 1 Guest are viewing this topic.

Offline Dochere

  • BeBot User
  • **
  • Posts: 43
  • Karma: +0/-0
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.
« Last Edit: August 23, 2010, 07:42:43 pm by Dochere »

Offline Dochere

  • BeBot User
  • **
  • Posts: 43
  • Karma: +0/-0
Re: Can bebot act on commands in a private channel by another bot?
« Reply #1 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 :)



 

* Recent Posts
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 ]


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

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