From 2af1ca9f28d9311992a48cd48c0e3caed4f18374 Mon Sep 17 00:00:00 2001 From: Nova Cat Date: Sun, 1 Dec 2024 14:27:42 -0800 Subject: [PATCH] emotion --- sweebot.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/sweebot.py b/sweebot.py index d610fb8..6cc6166 100644 --- a/sweebot.py +++ b/sweebot.py @@ -433,18 +433,26 @@ while True: update() 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 " + - ("#" * int(happiness)) + - ("-" * int(10-happiness)) + " Happy)", - channel) + ("#" * int(happiness)) + + ("-" * int(10-happiness)) + " Happy)", + channel) elif command[0] == "$emotion": multiline("Emotion: Upset " + ("#" * int(happiness)) + ("-" * int(10-happiness)) + " Happy", channel) 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 " + ("#" * int(happiness)) + ("-" * int(10-happiness)) + " Happy)",