forked from swee/MeowNex
Update sweebot.py
This commit is contained in:
parent
33d0043f13
commit
1d93c75057
1 changed files with 31 additions and 12 deletions
19
sweebot.py
19
sweebot.py
|
@ -474,14 +474,24 @@ while True:
|
|||
|
||||
elif command[0] == "$patpat" or command[0] == "$headpat":
|
||||
if len(command) == 2:
|
||||
if int(command[1]) < 50:
|
||||
for i in range(0,int(command[1])):
|
||||
happiness += (1 if happiness != 10 else 0)
|
||||
else:
|
||||
happiness = 10
|
||||
elif len(command) == 1:
|
||||
happiness += (1 if happiness != 10 else 0)
|
||||
if int(command[1]) < 50:
|
||||
multiline(choice(pats) + " (Emotion: Upset " +
|
||||
("#" * int(happiness)) +
|
||||
("-" * int(10-happiness)) + " Happy)",
|
||||
channel)
|
||||
else:
|
||||
multiline("Okay that's enough!!" + " (Emotion: Upset " +
|
||||
("#" * int(happiness)) +
|
||||
("-" * int(10-happiness)) + " Happy)",
|
||||
channel)
|
||||
|
||||
elif command[0] == "$emotion":
|
||||
multiline("Emotion: Upset " +
|
||||
("#" * int(happiness)) +
|
||||
|
@ -489,14 +499,23 @@ while True:
|
|||
channel)
|
||||
elif command[0] == "$bap":
|
||||
if len(command) == 2:
|
||||
if int(command[1]) < 50:
|
||||
for i in range(0,int(command[1])):
|
||||
happiness -= (1 if happiness != 0 else 0)
|
||||
else:
|
||||
happiness = 0
|
||||
elif len(command) == 1:
|
||||
happiness -= (1 if happiness != 0 else 0)
|
||||
if int(command[1]) < 50:
|
||||
multiline(choice(baps) + " (Emotion: Upset " +
|
||||
("#" * int(happiness)) +
|
||||
("-" * int(10-happiness)) + " Happy)",
|
||||
channel)
|
||||
else:
|
||||
multiline("Okay that's enough!!" + " (Emotion: Upset " +
|
||||
("#" * int(happiness)) +
|
||||
("-" * int(10-happiness)) + " Happy)",
|
||||
channel)
|
||||
elif command[0] == "$meow":
|
||||
if random(1,100) > (happiness*10):
|
||||
multiline(choice(meows_upset), channel)
|
||||
|
|
Loading…
Reference in a new issue