Compare commits

..

3 commits

Author SHA1 Message Date
n
df06f2379b typo 2025-01-31 18:26:54 -06:00
n
8e7ad11438 go away swap files 2025-01-31 18:22:53 -06:00
n
8fcf9675c6 test 2 2025-01-31 18:22:20 -06:00
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -163,4 +163,5 @@ cython_debug/
#.idea/ #.idea/
*config.json *config.json
*.kate-swp

4
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[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)