This commit is contained in:
Auric Vente 2024-02-20 05:50:23 -06:00
parent 6b7d8c87b5
commit 0ea1101537
1 changed files with 6 additions and 2 deletions

View File

@ -96,17 +96,21 @@ async def on_message(ws, message):
update_time() update_time()
await send_message(ws, "Pong!", room_id) 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": elif cmd == "describe":
if len(args) >= 1: if len(args) >= 1:
update_time() update_time()
await gif_describe(args[0], room_id) await gif_describe(args[0], room_id)
elif cmd == "wins": elif cmd == "wins" or cmd == "win":
if len(args) >= 1: if len(args) >= 1:
update_time() update_time()
await gif_wins(args[0], room_id) await gif_wins(args[0], room_id)
elif cmd == "numbers": elif cmd == "numbers" or cmd == "number" or cmd == "num":
update_time() update_time()
await gif_numbers(None, room_id) await gif_numbers(None, room_id)