Make notifications configurable

master
Mark Veidemanis 2 years ago
parent 917ef5c886
commit d84d035edf
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -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

Loading…
Cancel
Save