From 2f29335a5ac256e9913b470c40a10ea90878cb01 Mon Sep 17 00:00:00 2001 From: Nova Cat Date: Fri, 15 Nov 2024 21:23:45 -0800 Subject: [PATCH] Move hug to the core --- cc/hug | 4 ---- sweebot.py | 5 ++++- 2 files changed, 4 insertions(+), 5 deletions(-) delete mode 100644 cc/hug diff --git a/cc/hug b/cc/hug deleted file mode 100644 index 06804d2..0000000 --- a/cc/hug +++ /dev/null @@ -1,4 +0,0 @@ -from random import choice -from sys import argv -lene = len(argv) -print("\x01ACTION gives a hug to {argv[1] if len > 3 else argv[3:]}") \ No newline at end of file diff --git a/sweebot.py b/sweebot.py index 8091ead..ef77db8 100644 --- a/sweebot.py +++ b/sweebot.py @@ -494,6 +494,9 @@ 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) + #elif command[0] == "$sed": @@ -652,4 +655,4 @@ while True: pass except Exception as ex: - print(traceback.format_exc()) \ No newline at end of file + print(traceback.format_exc())