test
This commit is contained in:
parent
773beb5553
commit
52a7e18d03
1 changed files with 6 additions and 1 deletions
7
bot.py
7
bot.py
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue