From d0b488b8639ad4e10f24c203bc5837c0b5f27448 Mon Sep 17 00:00:00 2001 From: swee Date: Mon, 23 Dec 2024 16:11:48 -0800 Subject: [PATCH] Update sweebot.py --- sweebot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sweebot.py b/sweebot.py index ae78397..9fc5948 100644 --- a/sweebot.py +++ b/sweebot.py @@ -540,7 +540,7 @@ while True: happiness = 10 elif len(command) == 1: 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 " + ("#" * int(happiness)) + ("-" * int(10-happiness)) + " Happy)", @@ -565,7 +565,7 @@ while True: happiness = 0 elif len(command) == 1: 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 " + ("#" * int(happiness)) + ("-" * int(10-happiness)) + " Happy)",