Update sweebot.py
All checks were successful
Check syntax / check (push) Successful in 10s

This commit is contained in:
Nova Cat 2024-12-21 14:24:01 -08:00
parent 33d0043f13
commit 1d93c75057

View file

@ -474,14 +474,24 @@ while True:
elif command[0] == "$patpat" or command[0] == "$headpat":
if len(command) == 2:
for i in range(0,int(command[1])):
happiness += (1 if happiness != 10 else 0)
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)
multiline(choice(pats) + " (Emotion: Upset " +
("#" * int(happiness)) +
("-" * int(10-happiness)) + " Happy)",
channel)
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:
for i in range(0,int(command[1])):
happiness -= (1 if happiness != 0 else 0)
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)
multiline(choice(baps) + " (Emotion: Upset " +
("#" * int(happiness)) +
("-" * int(10-happiness)) + " Happy)",
channel)
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)