specify if a notification is critical

This commit is contained in:
əlemi 2022-01-23 13:39:59 +01:00
parent 7bfb53dcc3
commit 8a8837bfd8

View file

@ -13,7 +13,7 @@ class Notifier:
def report(self) -> str: def report(self) -> str:
return '\n'.join(str(fn()).strip() for fn in self._report_functions) return '\n'.join(str(fn()).strip() for fn in self._report_functions)
def notify(self, text, **kwargs): def notify(self, text, critical:bool = False, **kwargs):
print(text) print(text)
async def initialize(self, _client:'Treepuncher'): async def initialize(self, _client:'Treepuncher'):