Compare commits

..

No commits in common. "cc3d96b855b89d3250b5e46fc15848be12b07c63" and "65c43d8a0d821e00ac4f385e6530a734356218e5" have entirely different histories.

6
bot.py
View file

@ -4,7 +4,7 @@ import json
with open('config.json', 'r') as f: with open('config.json', 'r') as f:
config = json.load(f) config = json.load(f)
credentials = botLibrary.Creds(config['matrix']['server'], config['matrix']['userid'], config['matrix']['password']) credentials = botLibrary.Creds(config['configuration']['server'], config['configuration']['userid'], config['configuration']['password'])
print(credentials) print(credentials)
bot = botLibrary.Bot(credentials) bot = botLibrary.Bot(credentials)
PREFIX = "!q" PREFIX = "!q"
@ -36,10 +36,8 @@ async def make_choice(room, message):
temp = False temp = False
else: else:
id = match.args() id = match.args()
id = str(id[1])
message = (f""" message = (f"""
Command recived (DEBUG). Command recived (DEBUG)
(We're supposed to fetch quote number {id} now.)
""") """)
await bot.api.send_text_message(room.room_id, message) await bot.api.send_text_message(room.room_id, message)