Compare commits

...

2 commits

Author SHA1 Message Date
n
cc3d96b855 rename matrix so it makes more sense 2025-01-31 18:38:04 -06:00
n
6b5949cdb3 add quote number to fetch 2025-01-31 18:36:46 -06:00

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['configuration']['server'], config['configuration']['userid'], config['configuration']['password']) credentials = botLibrary.Creds(config['matrix']['server'], config['matrix']['userid'], config['matrix']['password'])
print(credentials) print(credentials)
bot = botLibrary.Bot(credentials) bot = botLibrary.Bot(credentials)
PREFIX = "!q" PREFIX = "!q"
@ -36,8 +36,10 @@ 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)