Cleaned up flirt, kill, lart, and slap.py

This commit is contained in:
neersighted 2012-03-05 20:53:45 -08:00
parent fb304bf970
commit 59628292c1
4 changed files with 24 additions and 21 deletions

View file

@ -42,12 +42,12 @@ def kill(inp, me=None, nick=None, input=None, notice=None):
return
if inp == input.conn.nick.lower() or inp == "itself":
kill = random.choice(kills)
kill = re.sub ('<who>', nick, kill)
msg = re.sub ('<body>', random.choice(body), kill)
target = random.choice(kills)
target = re.sub ('<who>', nick, target)
target = re.sub ('<body>', random.choice(body), target)
else:
kill = random.choice(kills)
kill = re.sub ('<who>', inp, kill)
msg = re.sub ('<body>', random.choice(body), kill)
target = random.choice(kills)
target = re.sub ('<who>', inp, target)
target = re.sub ('<body>', random.choice(body), target)
msg = target
me(msg)