Daenyth/Chillout-Tent-bot — Issue #11: uber bouncer
Author: grocerybill
Created: 2012-03-06 03:26:26+00:00
State: open

every now and again we get comments that the tent gets out of control at night (no mods). I would love to find a way to let the bot boot based on a set of criteria.

In general:
- look for swearing (a classic troll sign)
- look for consistent low dj - this should take care of itself but if the decks aren't full they can just get back up
- if conditions met: announce person is "bootable"
- allow anyone to boot the "troll" with the /boot+name switch

The thinking I've put together so far is:

- search chat for egregious swears ( a list)
- if "swears" in chat
speak: name+"keep it clean"

[check for existing name (variable) else create it to count # swears by person]

- if not (iserror s+name = s+name + 1) then s+name = s+name + 1
else -create var: "s"+name"
-s+name = s+name + 1

- track average of last 3 song ratings by person

- create 3 vars per dj name at time of dj start
- set 3 vars to 100
- create counter var for dj = 1

- at song end record % based on counter
- inc counter +1 (if 3 change to 1)

[ add name to list of trolls if conditions met such as:
- set troll var (boolean) if (track avg. <50 and swear count <2) ]

- add name to "troll list"
- announce status as troll

if /boot or / escort command received [overwrites prior request of auto escort or boot if command received by mod]
- check for mod status of requestor (if yes doit = 1)
- check for name on troll list (if yes do it = 1)

if do it = 1 boot (escort)
do it = 0