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 14, 2008, 10:29:16 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.2.x Custom/Unofficial Modules > Topic: Kids module - under 18 control
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Kids module - under 18 control  (Read 717 times)
0 Members and 1 Guest are viewing this topic.
nebhyper
Rookie
**
Offline Offline

Gender: Male
Posts: 62


Kids module - under 18 control
« on: March 02, 2007, 12:43:53 PM »

My org has a few members who let thier children play.  They do this so that they can spend time with thier children playing the same game.

These children are from ages 11-14.  Since our org uses the jokes module to include !cyber (!cyb0r) I wrote this module to keep a list of the kids that are in our org and limit the use of some commands while these kids are online.  In the case of our org they are only on during certain hours of the day while thier father is online too. They log off early (well relative) in the evening due to school nights and have limited online time during the weekends. (Homework, chores, etc.)  Thus limiting commands while they are online is minimal for players in the org.

Plus, the command can still be used via tell.  In tell format you can check to see if the person sending the tell is a minor or not.  This allows people to use these commands in private tell yet still restrict minors from using it.

I will attach the kids.php module and the jokes.php module for an example of how I used this code.

!kid add name
!kid rem|del name
!kidlist

All can be used in gc, pgroup or tell.  Have to be admin to add/remove. 

Also note, this code does check the alts list of each kid in the table and checks if they are online as well.  So all you have to do is add the kids main and have thier alts registered.  If thier alt is not in the org but in the pgroup channel as a guest, well, it checks that too!

Logged

Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: Kids module - under 18 control
« Reply #1 on: March 02, 2007, 01:38:22 PM »

I like it! Great consideration of minors, and looked like was easy to incorporate with my module. Another way would be to have an extra field on the jokes table for a boolean flag whether adult content or not and filter on the response, rather than the entire command. Obviously !cyber you would want completely filtered but im sure some of the other responses, and org added jokes might want it as well. Then you could just do a single check in the joke function for the adult flag and either send the normal response or the blocked response.

Would require considerable more administration though Sad
« Last Edit: March 02, 2007, 01:40:26 PM by Malosar » Logged

Eternalist
General of The Syndicate
nebhyper
Rookie
**
Offline Offline

Gender: Male
Posts: 62


Re: Kids module - under 18 control
« Reply #2 on: March 02, 2007, 02:38:15 PM »

I'm glad you like it.  I went with a command (for adding/removing the main of each minor) and functions (for checks) since this way it can be used with other commands.

At this moment I can not think of any other command that would need to be restricted by minors, however, if someones org has other commands, or other needs to check for minors online, this module provides the function for those checks.


Only example I can think of is if someone says a 'bad' word in chat, you can catch those words and if a minor is on send the person saying the 'bad' word a warning.


I'm sure there are other uses for this code.  I wanted to share it since it can help make org bots minor friendly. (Specifically having in mind the children of org members.)

« Last Edit: March 02, 2007, 03:06:30 PM by nebhyper » Logged

Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: Kids module - under 18 control
« Reply #3 on: March 02, 2007, 02:54:15 PM »

Yeah would be fairly simple to add language filter as well in that. When it does the kid check, do a str_replace with **** on the response based on an array of words coded into the module.
Logged

Eternalist
General of The Syndicate
clashbot
Experienced
****
Offline Offline

Gender: Male
Posts: 192



Re: Kids module - under 18 control
« Reply #4 on: February 04, 2008, 03:38:07 AM »

has this been ported to the v4 yet? Org pres is VERY interested in this module
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: Kids module - under 18 control
« previous next »
 
Jump to:  

Recent
Buddylist for guildbot
by Zacix
[Today at 09:43:40 AM]

Link 2 Guilds via 2 Bots?
by Temar
[Today at 08:42:11 AM]

OnlineOrg
by Karsta
[October 13, 2008, 06:54:20 AM]

!security Levels
by Nytridr
[October 12, 2008, 11:36:45 PM]

Bossloot for 5.2
by Brac
[October 12, 2008, 04:45:17 PM]

Ported Modules
by Jiheld
[October 12, 2008, 09:00:13 AM]

raid/point system suggest...
by Temar
[October 11, 2008, 11:45:40 PM]

!timers suggestions: alts...
by Alreadythere
[October 11, 2008, 03:19:46 PM]

!server does not work
by Alreadythere
[October 11, 2008, 06:54:38 AM]

TWC
by clashbot
[October 10, 2008, 08:52:57 AM]
Stats
Members
Total Members: 989
Latest: Syphae
Stats
Total Posts: 10814
Total Topics: 1459
Online Today: 14
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 2
Guests: 14
Total: 16
Zacix
Hades

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.488 seconds with 29 queries. (Pretty URLs adds 0.034s, 4q)
Loading...