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?
September 06, 2008, 10:19:46 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 667 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: 153



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
Security
by Alreadythere
[Today at 10:02:42 AM]

Probs with relay from gue...
by Temar
[Today at 09:03:06 AM]

Raid spam in guild chat
by Temar
[Today at 09:01:18 AM]

Org Relaying
by Nytridr
[Today at 01:34:35 AM]

Link 2 Guilds via 2 Bots?
by Temar
[September 05, 2008, 04:22:40 PM]

SVN download
by clashbot
[September 05, 2008, 05:12:59 AM]

TWC
by Temar
[September 05, 2008, 12:27:23 AM]

How to find the guild ID?...
by Irinir
[September 03, 2008, 02:58:54 PM]

Deactivate Autoadding mem...
by Temar
[September 03, 2008, 02:49:01 PM]

0.4 Modules in 0.5 -- fou...
by Temar
[September 03, 2008, 11:06:42 AM]
Stats
Members
Total Members: 961
Latest: daltarak
Stats
Total Posts: 10408
Total Topics: 1412
Online Today: 15
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 2
Guests: 29
Total: 31
GBH
Jlee

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