From cbfdd831a71bcca434a161d0c3c890c83ef78623 Mon Sep 17 00:00:00 2001 From: n Date: Sun, 2 Feb 2025 02:09:48 -0600 Subject: [PATCH] Blunt tried :skull: --- bot.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index d2de1cf..6613b00 100644 --- a/bot.py +++ b/bot.py @@ -71,7 +71,12 @@ async def make_choice(room, message): temp = False else: id = match.args() - id = int(id[1]) + try: + id = int(id[1]) + except ValueError: + youTriedMessage = ("Blunt tried :skull:") + await bot.api.send_text_message(room.room_id, youTriedMessage) + quoteImage = fetch.fetchQuote(id) quoteData = fetch.fetchQuoteData(id)