From 0ea1101537295e8743e927ce35e6e24c85b54e52 Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Tue, 20 Feb 2024 05:50:23 -0600 Subject: [PATCH] Mods --- main.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 88fb0e0..1c6bdd3 100644 --- a/main.py +++ b/main.py @@ -96,17 +96,21 @@ async def on_message(ws, message): update_time() await send_message(ws, "Pong!", room_id) + elif cmd == "help": + update_time() + await send_message(ws, f"Commands: describe | wins | numbers | date", room_id) + elif cmd == "describe": if len(args) >= 1: update_time() await gif_describe(args[0], room_id) - elif cmd == "wins": + elif cmd == "wins" or cmd == "win": if len(args) >= 1: update_time() await gif_wins(args[0], room_id) - elif cmd == "numbers": + elif cmd == "numbers" or cmd == "number" or cmd == "num": update_time() await gif_numbers(None, room_id)