Compare commits
2 commits
773beb5553
...
d2929f79bf
Author | SHA1 | Date | |
---|---|---|---|
d2929f79bf | |||
52a7e18d03 |
2 changed files with 8 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -162,3 +162,5 @@ cython_debug/
|
|||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||
#.idea/
|
||||
|
||||
*config.json
|
||||
|
||||
|
|
7
bot.py
7
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"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue