forked from n/quotes-bot-python
Compare commits
4 commits
b283f66bb8
...
cbfdd831a7
Author | SHA1 | Date | |
---|---|---|---|
cbfdd831a7 | |||
528e1e81a1 | |||
0d5b7cb854 | |||
96ba34f17b |
1 changed files with 8 additions and 2 deletions
10
bot.py
10
bot.py
|
@ -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.)""")
|
||||||
|
|
Loading…
Add table
Reference in a new issue