Make notifications configurable

This commit is contained in:
2022-06-13 17:12:14 +01:00
parent 917ef5c886
commit d84d035edf

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