1
0
Fork 0

Compare commits

...

4 commits

10
bot.py
View file

@ -71,7 +71,12 @@ async def make_choice(room, message):
temp = False temp = False
else: else:
id = match.args() id = match.args()
id = str(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) quoteImage = fetch.fetchQuote(id)
quoteData = fetch.fetchQuoteData(id) quoteData = fetch.fetchQuoteData(id)
@ -106,7 +111,8 @@ Rating: {score}""")
message1 = (f"""Created: {created} message1 = (f"""Created: {created}
Description: {description} Description: {description}
Image ID: {imageid} Image ID: {imageid}
OCR (Tesseract): {ocr} OCR (Tesseract):
> {ocr}
Rating: {score}""") Rating: {score}""")
message2 = (f"""Command recived (DEBUG). message2 = (f"""Command recived (DEBUG).
(We're supposed to fetch quote number {id} now.)""") (We're supposed to fetch quote number {id} now.)""")