Looks nicer if it all matches
This commit is contained in:
parent
fc1f7cd193
commit
57e4838970
1 changed files with 8 additions and 8 deletions
|
@ -14,7 +14,7 @@ with open("plugins/data/slaps.txt") as f:
|
||||||
if not line.startswith("//")]
|
if not line.startswith("//")]
|
||||||
|
|
||||||
with open("plugins/data/slap_items.txt") as f:
|
with open("plugins/data/slap_items.txt") as f:
|
||||||
slap_items = [line.strip() for line in f.readlines()
|
items = [line.strip() for line in f.readlines()
|
||||||
if not line.startswith("//")]
|
if not line.startswith("//")]
|
||||||
|
|
||||||
with open("plugins/data/kills.txt") as f:
|
with open("plugins/data/kills.txt") as f:
|
||||||
|
@ -22,7 +22,7 @@ with open("plugins/data/kills.txt") as f:
|
||||||
if not line.startswith("//")]
|
if not line.startswith("//")]
|
||||||
|
|
||||||
with open("plugins/data/kill_bodyparts.txt") as f:
|
with open("plugins/data/kill_bodyparts.txt") as f:
|
||||||
kill_bodyparts = [line.strip() for line in f.readlines()
|
parts = [line.strip() for line in f.readlines()
|
||||||
if not line.startswith("//")]
|
if not line.startswith("//")]
|
||||||
|
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ def slap(inp, me=None, nick=None, conn=None, notice=None):
|
||||||
|
|
||||||
out = random.choice(slaps)
|
out = random.choice(slaps)
|
||||||
out = out.replace('<who>', target)
|
out = out.replace('<who>', target)
|
||||||
out = out.replace('<item>', random.choice(slap_items))
|
out = out.replace('<item>', random.choice(items))
|
||||||
|
|
||||||
# act out the message
|
# act out the message
|
||||||
me(out)
|
me(out)
|
||||||
|
@ -65,7 +65,7 @@ def lart(inp, me=None, nick=None, conn=None, notice=None):
|
||||||
|
|
||||||
out = random.choice(larts)
|
out = random.choice(larts)
|
||||||
out = out.replace('<who>', target)
|
out = out.replace('<who>', target)
|
||||||
out = out.replace('<item>', random.choice(slap_items))
|
out = out.replace('<item>', random.choice(items))
|
||||||
me(out)
|
me(out)
|
||||||
|
|
||||||
|
|
||||||
|
@ -85,5 +85,5 @@ def kill(inp, me=None, nick=None, conn=None, notice=None):
|
||||||
|
|
||||||
out = random.choice(kills)
|
out = random.choice(kills)
|
||||||
out = out.replace('<who>', target)
|
out = out.replace('<who>', target)
|
||||||
out = out.replace('<body>', random.choice(kill_bodyparts))
|
out = out.replace('<body>', random.choice(parts))
|
||||||
me(out)
|
me(out)
|
||||||
|
|
Reference in a new issue