From 359d044f0aa585643afeb65bba4dd17f33c56c7e Mon Sep 17 00:00:00 2001 From: swee Date: Sat, 16 Nov 2024 13:42:02 -0800 Subject: [PATCH] Update sweebot.py --- sweebot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sweebot.py b/sweebot.py index c695b09..4b9d954 100644 --- a/sweebot.py +++ b/sweebot.py @@ -495,8 +495,7 @@ while True: elif command[0] == "$botsnack": multiline(f"\x01ACTION eats some {choice(snacks)}\x01", channel) elif command[0] == "$hug": - name = nick if not len(command) > 1 else " ".join(command[1:]) - multiline(f"\x01ACTION gives a hug to {name}\x01", channel) + multiline(f"\x01ACTION gives a hug to {nick if not len(command) > 1 else " ".join(command[1:])}\x01", channel)