diff --git a/sweebot.py b/sweebot.py index ef77db8..d7a2ddf 100644 --- a/sweebot.py +++ b/sweebot.py @@ -495,7 +495,8 @@ while True: elif command[0] == "$botsnack": multiline(f"\x01ACTION eats some {choice(snacks)}\x01", channel) elif command[0] == "$hug": - multiline(f"\x01ACTION gives a hug to {nick if len(command) > 1 else command[1:]}\x01", channel) + name = nick if len(command) > 1 else command[1:] + multiline(f"\x01ACTION gives a hug to {name}\x01", channel)