BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => 0.3.x Custom/Unofficial Modules => Topic started by: Alreadythere on March 28, 2007, 10:21:18 pm

Title: Reworked private group module
Post by: Alreadythere 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 (http://www.m8y.de/ao/bebot/PrivGroup.phps) 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:
Title: Re: Reworked private group module
Post by: Blueeagle 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. :)
Title: Re: Reworked private group module
Post by: Alreadythere 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.
Title: Re: Reworked private group module
Post by: Alreadythere on April 08, 2007, 02:48:16 pm
Added the module to SVN.
Title: Re: Reworked private group module
Post by: Khalem on April 08, 2007, 03:02:38 pm
Looks nice. I'll play around with it some today or tomorrow.
Title: Re: Reworked private group module
Post by: Alreadythere on April 08, 2007, 03:13:20 pm
Added short description what the commands do.
SimplePortal 2.3.7 © 2008-2024, SimplePortal