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

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

Author Topic: Reworked private group module  (Read 13076 times)

0 Members and 1 Guest are viewing this topic.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Reworked private group module
« on: March 28, 2007, 10:21:18 pm »
I've rewritten the private group module. It relies completly on the access control management for access rights. And I've added settings for join/leave notifications. Personally I think those should be in the module managing the private group, not somewhere else. The location of the notifications can be set by settings. In addition to this the whole private group can be disabled by an setting.

The join/leave notification are done by parsing the settings strings Privgroup.Joinstring and Privgroup.Leavestring. The parser replaces any tag of the format #!FIELD!# correlating to an field name of the return of the whois cache with the information of that field, as well as replacing #!BOTNAME!# with the name of the bot.

.phps file rename to .php

Note: if you use this module with the current relay version, you should disable the join/leave notifications in one of the modules to avoid double spamming.

Commands:
  • join invites the caller to the chat group
  • chat same as join
  • leave kicks the caller from the chat group if he joined it
  • invite same as join
  • inviteuser name invites name to the chatgroup
  • kick same as leave
  • kickuser name kicks name from the chatgroup
  • kickall kicks all from the chatgroup
« Last Edit: April 08, 2007, 03:13:03 pm by Alreadythere »

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: Reworked private group module
« Reply #1 on: March 28, 2007, 11:41:52 pm »
Aww.. I never noticed the PrivGroup module. I stuffed all this into Relay_GUILD. Much of it obviously belongs in here.

The configurable join/leave strings are a nice feature, but I'm not sure it's neccessary. We don't want to create an "inner platform effect" (thedailywtf.com) where, in the end, we impliment so much configuration and stuff that we could just aswell eval() everything coming in on the chat. :)

I'll have to crop out the stuff from Relay_GUILD that belongs in here. :)
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Reworked private group module
« Reply #2 on: March 28, 2007, 11:51:59 pm »
The configurable join/leave strings are a nice feature, but I'm not sure it's neccessary. We don't want to create an "inner platform effect" (thedailywtf.com) where, in the end, we impliment so much configuration and stuff that we could just aswell eval() everything coming in on the chat. :)
It's definitly debateable. Personal I just got sick of having to have different notify files for my different bots just because some people want more or less information. This way now I can just change it at runtime.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Reworked private group module
« Reply #3 on: April 08, 2007, 02:48:16 pm »
Added the module to SVN.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Reworked private group module
« Reply #4 on: April 08, 2007, 03:02:38 pm »
Looks nice. I'll play around with it some today or tomorrow.
BeBot Founder and Fixer Kingpin

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Reworked private group module
« Reply #5 on: April 08, 2007, 03:13:20 pm »
Added short description what the commands do.

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


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 ]

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