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"