Compare commits
No commits in common. "d2929f79bf923a157d156d026dc77fef25c0aaf8" and "773beb5553b9e6365481c7dd20350cdf43d39be5" have entirely different histories.
d2929f79bf
...
773beb5553
2 changed files with 1 additions and 8 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -162,5 +162,3 @@ 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
7
bot.py
|
@ -1,11 +1,6 @@
|
||||||
import simplematrixbotlib as botLibrary
|
import simplematrixbotlib as botLibrary
|
||||||
import json
|
|
||||||
|
|
||||||
with open('config.json', 'r') as f:
|
credentials = botLibrary.Creds("https://localhost:8008", "user", "password")
|
||||||
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