From 643dd6cd50a16aef0a9de288a4a4525ac3abb0eb Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Sun, 3 Mar 2024 13:27:48 -0600 Subject: [PATCH] Mods --- main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.py b/main.py index f9f4530..c176612 100644 --- a/main.py +++ b/main.py @@ -243,6 +243,9 @@ async def on_message(ws, message): arg = " ".join(clean_list(args)) arg = clean_gifmaker(arg) await gif_wins(arg, room_id) + else: + update_time() + await gif_wins(None, room_id) elif cmd == "numbers" or cmd == "number" or cmd == "nums" or cmd == "num": update_time() @@ -298,6 +301,9 @@ async def gif_describe(who, room_id): async def gif_wins(who, room_id): + if not who: + who = random.choice(userlist) + command = gifmaker_command([ "--input", get_path("wins.gif"), "--words", f"{who} wins a ; [repeat] ; [RANDOM] ; [repeat]",