Add config.yml example

This commit is contained in:
Ben 2019-07-18 14:47:28 +02:00
parent 5ed7532a05
commit 7d1766d3e2
Signed by: ben
GPG key ID: 0F54A7ED232D3319

9
wmn.py
View file

@ -4,6 +4,15 @@ from matrix_client.client import MatrixClient
app = Flask(__name__)
"""
config.yml Example:
secret: "..."
matrix:
server: matrix.org
username: ...
password: "..."
"""
with open("config.yml", 'r') as ymlfile:
cfg = yaml.safe_load(ymlfile)