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: Bot1 joiing Bot2's Private Group.  (Read 1711 times)

0 Members and 1 Guest are viewing this topic.

Offline laen

  • BeBot User
  • **
  • Posts: 24
  • Karma: +0/-0
Bot1 joiing Bot2's Private Group.
« on: November 12, 2007, 12:22:53 am »
I have Bot1 which i'd like to run constantly, with just a minimal of modules. The modules it's doing is only the Security and Users stuff.

Bot2 is gonna have the modules like !calc, !raid, !items, and so on and so on. That bot uses Bot1's tables in the database for the users, security and settings.

None of these bots have anything to do with org/gc.

I want Bot2 to join Bot1's private group, and listen on the pgmsg. I tried to use Relay_GUILD.php and OnlineCount.php modified to handle extpgmsg too, but whatever i tried, it did join Bot1's private group but never answered a command in there, even if i set the !count to AN (anonymous) for Bot2 in !commands extpgmsg.

If anyone could help me, that would be awesome.
« Last Edit: November 12, 2007, 03:31:38 am by lcidw »

Offline Tichy

  • BeBot User
  • **
  • Posts: 42
  • Karma: +0/-0
Re: Bot1 joiing Bot2's Private Group.
« Reply #1 on: November 12, 2007, 11:05:27 pm »
When the bot receives a privgroup join request, any module could accept it by implementing the pginvite($group) method. Commands and normal chat is handled special in the bot. Commands have to be registert for extpgmsg in the modules. There is no simple way to change this behavior w/o touching each module or changing the core.

Offline laen

  • BeBot User
  • **
  • Posts: 24
  • Karma: +0/-0
Re: Bot1 joiing Bot2's Private Group.
« Reply #2 on: November 14, 2007, 08:07:16 am »
Was afraid of that indeed. Thanks though ;)

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: Bot1 joiing Bot2's Private Group.
« Reply #3 on: November 16, 2007, 02:30:52 am »
I'm sure there's an excellent answer to the following question:

Why would you want to do that?
The only problem that can't be solved by adding another wrapper is having too many wrappers.

 

* 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: 294
  • 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