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)",