Make notifications configurable

This commit is contained in:
Mark Veidemanis 2022-06-13 17:12:14 +01:00
parent 917ef5c886
commit d84d035edf
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@ class Notify(util.Base):
"""
def sendmsg(self, msg, title=None, priority=None, tags=None):
if settings.Notify.Enabled == "0":
return
headers = {"Title": "Bot"}
if title:
headers["Title"] = title