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
else:
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)
quoteData = fetch.fetchQuoteData(id)
@ -106,7 +111,8 @@ Rating: {score}""")
message1 = (f"""Created: {created}
Description: {description}
Image ID: {imageid}
OCR (Tesseract): {ocr}
OCR (Tesseract):
> {ocr}
Rating: {score}""")
message2 = (f"""Command recived (DEBUG).
(We're supposed to fetch quote number {id} now.)""")