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?
November 21, 2008, 09:03:21 PM

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 754 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
Change text in remember "...
by gerborg
[Today at 05:14:57 PM]

Log playtime from buddys ...
by Temar
[November 20, 2008, 10:33:57 AM]

Vote Core module and Simp...
by Temar
[November 19, 2008, 09:26:52 AM]

Restrict access for one m...
by Organizer
[November 19, 2008, 03:21:19 AM]

Custom / Revised Modules ...
by Elesar1
[November 17, 2008, 03:51:46 PM]

TWC
by Temar
[November 16, 2008, 11:39:12 AM]

Are there any FUN modules...
by Elesar1
[November 15, 2008, 07:39:15 PM]

Call to a member function...
by exxie
[November 15, 2008, 09:29:31 AM]

Ported Modules
by Alreadythere
[November 14, 2008, 06:10:07 PM]

cURL and other non-defaul...
by Temar
[November 14, 2008, 04:11:44 PM]
Stats
Members
Total Members: 1235
Latest: DDDepressionnn
Stats
Total Posts: 11037
Total Topics: 1496
Online Today: 16
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 0
Guests: 24
Total: 24

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