Add matrix

This commit is contained in:
Dryusdan 2020-12-09 20:34:00 +01:00
parent 84b1b1cf7c
commit 3ac53d76d0
2 changed files with 14 additions and 0 deletions

View File

@ -28,4 +28,10 @@ notifications:
port: 5223
to: me@xmpp.domain.tld
secure: True
matrix:
user: user
token: token
host: domain.tld
thumbnail: True
room_id: !12546789:domain.tld
db: db.sqlite

View File

@ -80,4 +80,12 @@ class Notifications:
return True
def _addMatrix(self):
self.apprise.add(
"matrixs://{}:{}@{}/!{}?webhook=matrix".format(
self.config["matrix"]["user"],
self.config["matrix"]["token"],
self.config["matrix"]["host"],
self.config["matrix"]["room_id"],
)
)
return True