Add config.yml example
This commit is contained in:
parent
5ed7532a05
commit
7d1766d3e2
9
wmn.py
9
wmn.py
|
@ -4,6 +4,15 @@ from matrix_client.client import MatrixClient
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
"""
|
||||||
|
config.yml Example:
|
||||||
|
|
||||||
|
secret: "..."
|
||||||
|
matrix:
|
||||||
|
server: matrix.org
|
||||||
|
username: ...
|
||||||
|
password: "..."
|
||||||
|
"""
|
||||||
with open("config.yml", 'r') as ymlfile:
|
with open("config.yml", 'r') as ymlfile:
|
||||||
cfg = yaml.safe_load(ymlfile)
|
cfg = yaml.safe_load(ymlfile)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue