forked from n/quotes-bot-python
Compare commits
No commits in common. "cbfdd831a71bcca434a161d0c3c890c83ef78623" and "b283f66bb8b0fae3a15d5c86fb69eb34b3104549" have entirely different histories.
cbfdd831a7
...
b283f66bb8
1 changed files with 2 additions and 8 deletions
10
bot.py
10
bot.py
|
@ -71,12 +71,7 @@ async def make_choice(room, message):
|
|||
temp = False
|
||||
else:
|
||||
id = match.args()
|
||||
try:
|
||||
id = int(id[1])
|
||||
except ValueError:
|
||||
youTriedMessage = ("Blunt tried :skull:")
|
||||
await bot.api.send_text_message(room.room_id, youTriedMessage)
|
||||
|
||||
id = str(id[1])
|
||||
quoteImage = fetch.fetchQuote(id)
|
||||
quoteData = fetch.fetchQuoteData(id)
|
||||
|
||||
|
@ -111,8 +106,7 @@ 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.)""")
|
||||
|
|
Loading…
Add table
Reference in a new issue