Add matrix
This commit is contained in:
parent
84b1b1cf7c
commit
3ac53d76d0
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue