started switching violence.py to text files
This commit is contained in:
parent
9ef6899266
commit
b725d49c33
4 changed files with 45 additions and 31 deletions
19
plugins/data/slap_items.txt
Executable file
19
plugins/data/slap_items.txt
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
cast iron skillet
|
||||||
|
large trout
|
||||||
|
baseball bat
|
||||||
|
wooden cane
|
||||||
|
CRT monitor
|
||||||
|
diamond sword
|
||||||
|
physics textbook
|
||||||
|
television
|
||||||
|
mau5head
|
||||||
|
five ton truck
|
||||||
|
roll of duct tape
|
||||||
|
book
|
||||||
|
cobblestone block
|
||||||
|
lava bucket
|
||||||
|
rubber chicken
|
||||||
|
gold block
|
||||||
|
fire extinguisher
|
||||||
|
heavy rock
|
||||||
|
chunk of dirt
|
12
plugins/data/slaps.txt
Executable file
12
plugins/data/slaps.txt
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
slaps <who> with a <item>.
|
||||||
|
slaps <who> around a bit with a <item>.
|
||||||
|
throws a <item> at <who>.
|
||||||
|
chucks a few <item>s at <who>.
|
||||||
|
grabs a <item> and throws it in <who>'s face.
|
||||||
|
launches a <item> in <who>'s general direction.
|
||||||
|
sits on <who>'s face, while slamming a <item> into their crotch.
|
||||||
|
holds <who> down and repeatedly whacks them with a <item>.
|
||||||
|
prods <who> with a flaming <item>.
|
||||||
|
picks up a <item>, and whacks <who> with it.
|
||||||
|
ties <who> to a chair and throws a <item> at them.
|
||||||
|
hits <who> on the head with a <item>.
|
|
@ -36,6 +36,7 @@ def sieve_suite(bot, input, func, kind, args):
|
||||||
if args.get('adminonly', False):
|
if args.get('adminonly', False):
|
||||||
admins = bot.config.get('admins', [])
|
admins = bot.config.get('admins', [])
|
||||||
|
|
||||||
|
|
||||||
if input.mask not in admins and input.nick not in admins:
|
if input.mask not in admins and input.nick not in admins:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
|
@ -3,38 +3,20 @@ import re
|
||||||
import random
|
import random
|
||||||
|
|
||||||
|
|
||||||
slaps = ["slaps <who> with a <item>.",
|
slaps = []
|
||||||
"slaps <who> around a bit with a <item>.",
|
slap_items = []
|
||||||
"throws a <item> at <who>.",
|
|
||||||
"chucks a few <item>s at <who>.",
|
|
||||||
"grabs a <item> and throws it in <who>'s face.",
|
|
||||||
"launches a <item> in <who>'s general direction.",
|
|
||||||
"sits on <who>'s face, while slamming a <item> into their crotch.",
|
|
||||||
"holds <who> down and repeatedly whacks them with a <item>.",
|
|
||||||
"prods <who> with a flaming <item>.",
|
|
||||||
"picks up a <item>, and whacks <who> with it.",
|
|
||||||
"ties <who> to a chair and throws a <item> at them.",
|
|
||||||
"hits <who> on the head with a <item>."]
|
|
||||||
|
|
||||||
items = ["cast iron skillet",
|
with open("plugins/data/slaps.txt") as f:
|
||||||
"large trout",
|
for line in f.readlines():
|
||||||
"baseball bat",
|
if line.startswith("//"):
|
||||||
"wooden cane",
|
continue
|
||||||
"CRT monitor",
|
slaps.append(line)
|
||||||
"diamond sword",
|
|
||||||
"physics textbook",
|
with open("plugins/data/slap_items.txt") as f:
|
||||||
"television",
|
for line in f.readlines():
|
||||||
"mau5head",
|
if line.startswith("//"):
|
||||||
"five ton truck",
|
continue
|
||||||
"roll of duct tape",
|
items.append(line)
|
||||||
"book",
|
|
||||||
"cobblestone block",
|
|
||||||
"lava bucket",
|
|
||||||
"rubber chicken",
|
|
||||||
"gold block",
|
|
||||||
"fire extinguisher",
|
|
||||||
"heavy rock",
|
|
||||||
"chunk of dirt"]
|
|
||||||
|
|
||||||
larts = ["swaps <who>'s shampoo with glue.",
|
larts = ["swaps <who>'s shampoo with glue.",
|
||||||
"installs Windows on <who>'s computer.",
|
"installs Windows on <who>'s computer.",
|
||||||
|
|
Reference in a new issue