From 52a7e18d03abdade50d0b95fe4725a3d2bd4ddaf Mon Sep 17 00:00:00 2001 From: n Date: Fri, 31 Jan 2025 18:20:14 -0600 Subject: [PATCH] test --- bot.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index fa03311..05a1afe 100644 --- a/bot.py +++ b/bot.py @@ -1,6 +1,11 @@ import simplematrixbotlib as botLibrary +import json -credentials = botLibrary.Creds("https://localhost:8008", "user", "password") +with open('config.json', 'r') as f: + config = json.load(f) + +credentials = botLibrary.Creds(config[server], config[login], config[password]) +print(credentials) bot = botLibrary.Bot(credentials) PREFIX = "!q"