diff --git a/config/kimsufi.sample.yaml b/config/kimsufi.sample.yaml index a4ba636..c4068d7 100644 --- a/config/kimsufi.sample.yaml +++ b/config/kimsufi.sample.yaml @@ -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 diff --git a/src/notifications.py b/src/notifications.py index c9414fd..b7b00bc 100644 --- a/src/notifications.py +++ b/src/notifications.py @@ -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