Compare commits
No commits in common. "cc3d96b855b89d3250b5e46fc15848be12b07c63" and "65c43d8a0d821e00ac4f385e6530a734356218e5" have entirely different histories.
cc3d96b855
...
65c43d8a0d
1 changed files with 2 additions and 4 deletions
6
bot.py
6
bot.py
|
@ -4,7 +4,7 @@ import json
|
|||
with open('config.json', 'r') as 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)
|
||||
bot = botLibrary.Bot(credentials)
|
||||
PREFIX = "!q"
|
||||
|
@ -36,10 +36,8 @@ async def make_choice(room, message):
|
|||
temp = False
|
||||
else:
|
||||
id = match.args()
|
||||
id = str(id[1])
|
||||
message = (f"""
|
||||
Command recived (DEBUG).
|
||||
(We're supposed to fetch quote number {id} now.)
|
||||
Command recived (DEBUG)
|
||||
""")
|
||||
|
||||
await bot.api.send_text_message(room.room_id, message)
|
||||
|
|
Loading…
Add table
Reference in a new issue