emotion
This commit is contained in:
parent
90669fd5f5
commit
2af1ca9f28
1 changed files with 13 additions and 5 deletions
18
sweebot.py
18
sweebot.py
|
@ -433,18 +433,26 @@ while True:
|
||||||
update()
|
update()
|
||||||
|
|
||||||
elif command[0] == "$patpat" or command[0] == "$headpat":
|
elif command[0] == "$patpat" or command[0] == "$headpat":
|
||||||
happiness += (1 if happiness != 10 else 0)
|
if len(command) == 2:
|
||||||
|
for i in range(1,int(command[1])):
|
||||||
|
happiness += (1 if happiness != 10 else 0)
|
||||||
|
elif len(command) == 1:
|
||||||
|
happiness += (1 if happiness != 10 else 0)
|
||||||
multiline(choice(pats) + " (Emotion: Upset " +
|
multiline(choice(pats) + " (Emotion: Upset " +
|
||||||
("#" * int(happiness)) +
|
("#" * int(happiness)) +
|
||||||
("-" * int(10-happiness)) + " Happy)",
|
("-" * int(10-happiness)) + " Happy)",
|
||||||
channel)
|
channel)
|
||||||
elif command[0] == "$emotion":
|
elif command[0] == "$emotion":
|
||||||
multiline("Emotion: Upset " +
|
multiline("Emotion: Upset " +
|
||||||
("#" * int(happiness)) +
|
("#" * int(happiness)) +
|
||||||
("-" * int(10-happiness)) + " Happy",
|
("-" * int(10-happiness)) + " Happy",
|
||||||
channel)
|
channel)
|
||||||
elif command[0] == "$bap":
|
elif command[0] == "$bap":
|
||||||
happiness -= (1 if happiness != 0 else 0)
|
if len(command) == 2:
|
||||||
|
for i in range(1,int(command[1])):
|
||||||
|
happiness -= (1 if happiness != 10 else 0)
|
||||||
|
elif len(command) == 1:
|
||||||
|
happiness -= (1 if happiness != 10 else 0)
|
||||||
multiline(choice(baps) + " (Emotion: Upset " +
|
multiline(choice(baps) + " (Emotion: Upset " +
|
||||||
("#" * int(happiness)) +
|
("#" * int(happiness)) +
|
||||||
("-" * int(10-happiness)) + " Happy)",
|
("-" * int(10-happiness)) + " Happy)",
|
||||||
|
|
Loading…
Reference in a new issue