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

This commit is contained in:
Nova Cat 2024-12-23 16:11:48 -08:00
parent c6258e1094
commit d0b488b863

View file

@ -540,7 +540,7 @@ while True:
happiness = 10 happiness = 10
elif len(command) == 1: elif len(command) == 1:
happiness += (1 if happiness != 10 else 0) happiness += (1 if happiness != 10 else 0)
if int(command[1]) < 50: if len(command) == 2 and int(command[1]) < 50:
multiline(choice(pats) + " (Emotion: Upset " + multiline(choice(pats) + " (Emotion: Upset " +
("#" * int(happiness)) + ("#" * int(happiness)) +
("-" * int(10-happiness)) + " Happy)", ("-" * int(10-happiness)) + " Happy)",
@ -565,7 +565,7 @@ while True:
happiness = 0 happiness = 0
elif len(command) == 1: elif len(command) == 1:
happiness -= (1 if happiness != 0 else 0) happiness -= (1 if happiness != 0 else 0)
if int(command[1]) < 50: if len(command) == 2 and int(command[1]) < 50:
multiline(choice(baps) + " (Emotion: Upset " + multiline(choice(baps) + " (Emotion: Upset " +
("#" * int(happiness)) + ("#" * int(happiness)) +
("-" * int(10-happiness)) + " Happy)", ("-" * int(10-happiness)) + " Happy)",