L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 07, 2008, 05:01:21 AM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.3.x Custom/Unofficial Modules > Topic: Reworked private group module
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Reworked private group module  (Read 567 times)
0 Members and 1 Guest are viewing this topic.
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1052


Reworked private group module
« on: March 28, 2007, 03: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, 08:13:03 AM by Alreadythere » Logged
Blueeagle
Omnipotent
BeBot Developer
Expert
********
Offline Offline

Gender: Male
Posts: 313



Re: Reworked private group module
« Reply #1 on: March 28, 2007, 04: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. Smiley

I'll have to crop out the stuff from Relay_GUILD that belongs in here. Smiley
Logged

The only problem that can't be solved by adding another wrapper is having too many wrappers.
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1052


Re: Reworked private group module
« Reply #2 on: March 28, 2007, 04:51:59 PM »

Quote from: Blueeagle on March 28, 2007, 04:41:52 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. Smiley
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.
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1052


Re: Reworked private group module
« Reply #3 on: April 08, 2007, 07:48:16 AM »

Added the module to SVN.
Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: Reworked private group module
« Reply #4 on: April 08, 2007, 08:02:38 AM »

Looks nice. I'll play around with it some today or tomorrow.
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1052


Re: Reworked private group module
« Reply #5 on: April 08, 2007, 08:13:20 AM »

Added short description what the commands do.
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.3.x Custom/Unofficial Modules > Topic: Reworked private group module
« previous next »
 
Jump to:  

Recent
!points
by IKShadow
[Today at 05:00:38 AM]

TWC
by Temar
[Today at 02:49:27 AM]

raid/point system suggest...
by Vain
[October 06, 2008, 08:53:00 PM]

!items database
by cthulhu
[October 05, 2008, 11:36:16 AM]

Supplies needed module
by viper
[October 05, 2008, 11:11:13 AM]

Assist
by Foxy
[October 05, 2008, 05:09:02 AM]

How's 0.5.x coming? Wonde...
by Hyde
[October 04, 2008, 04:59:20 PM]

Org in AoC
by Alreadythere
[October 04, 2008, 04:50:00 AM]

OnlineOrg
by Slacklin
[October 04, 2008, 03:06:00 AM]

Learning .NET, Mono, C#, ...
by Vhab
[October 04, 2008, 02:39:03 AM]
Stats
Members
Total Members: 983
Latest: Titerris
Stats
Total Posts: 10744
Total Topics: 1449
Online Today: 11
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 8
Guests: 49
Total: 57
Csavarkulcs
IKShadow
Baja
Karsta
cthulhu
Noer
Wolfbiter
Temar

Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.178 seconds with 29 queries. (Pretty URLs adds 0.03s, 4q)
Loading...