Compare commits
3 commits
d2929f79bf
...
df06f2379b
Author | SHA1 | Date | |
---|---|---|---|
df06f2379b | |||
8e7ad11438 | |||
8fcf9675c6 |
2 changed files with 3 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -163,4 +163,5 @@ cython_debug/
|
||||||
#.idea/
|
#.idea/
|
||||||
|
|
||||||
*config.json
|
*config.json
|
||||||
|
*.kate-swp
|
||||||
|
|
||||||
|
|
4
bot.py
4
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[server], config[login], config[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"
|
||||||
|
@ -37,7 +37,7 @@ async def make_choice(room, message):
|
||||||
else:
|
else:
|
||||||
id = match.args()
|
id = match.args()
|
||||||
message = (f"""
|
message = (f"""
|
||||||
Command recived (DEBUG_)
|
Command recived (DEBUG)
|
||||||
""")
|
""")
|
||||||
|
|
||||||
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