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
|
temp = False
|
||||||
else:
|
else:
|
||||||
id = match.args()
|
id = match.args()
|
||||||
try:
|
id = str(id[1])
|
||||||
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)
|
||||||
|
|
||||||
|
@ -111,8 +106,7 @@ Rating: {score}""")
|
||||||
message1 = (f"""Created: {created}
|
message1 = (f"""Created: {created}
|
||||||
Description: {description}
|
Description: {description}
|
||||||
Image ID: {imageid}
|
Image ID: {imageid}
|
||||||
OCR (Tesseract):
|
OCR (Tesseract): {ocr}
|
||||||
> {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.)""")
|
||||||
|
|
Loading…
Add table
Reference in a new issue