maybe
This commit is contained in:
parent
0c24d9491e
commit
1a04b34bb4
1 changed files with 3 additions and 1 deletions
4
bot.py
4
bot.py
|
@ -1,5 +1,6 @@
|
||||||
import simplematrixbotlib as botLibrary
|
import simplematrixbotlib as botLibrary
|
||||||
import json
|
import json
|
||||||
|
import fetch
|
||||||
|
|
||||||
with open('config.json', 'r') as f:
|
with open('config.json', 'r') as f:
|
||||||
config = json.load(f)
|
config = json.load(f)
|
||||||
|
@ -37,9 +38,10 @@ async def make_choice(room, message):
|
||||||
else:
|
else:
|
||||||
id = match.args()
|
id = match.args()
|
||||||
id = str(id[1])
|
id = str(id[1])
|
||||||
|
quoteLink = fetch.fetchQuote(id)
|
||||||
message = (f"""
|
message = (f"""
|
||||||
Command recived (DEBUG).
|
Command recived (DEBUG).
|
||||||
(We're supposed to fetch quote number {id} now.)
|
(We're supposed to fetch quote number {id} now, from {quoteLink}.)
|
||||||
""")
|
""")
|
||||||
|
|
||||||
await bot.api.send_text_message(room.room_id, message)
|
await bot.api.send_text_message(room.room_id, message)
|
||||||
|
|
Loading…
Add table
Reference in a new issue