Compare commits

...

2 commits

Author SHA1 Message Date
n
d2929f79bf don't leak tokens on accident nyx 2025-01-31 18:20:42 -06:00
n
52a7e18d03 test 2025-01-31 18:20:14 -06:00
2 changed files with 8 additions and 1 deletions

2
.gitignore vendored
View file

@ -162,3 +162,5 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder. # option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/ #.idea/
*config.json

7
bot.py
View file

@ -1,6 +1,11 @@
import simplematrixbotlib as botLibrary 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) bot = botLibrary.Bot(credentials)
PREFIX = "!q" PREFIX = "!q"