Compare commits
2 commits
65c43d8a0d
...
cc3d96b855
Author | SHA1 | Date | |
---|---|---|---|
cc3d96b855 | |||
6b5949cdb3 |
1 changed files with 4 additions and 2 deletions
6
bot.py
6
bot.py
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue