specify if a notification is critical
This commit is contained in:
parent
7bfb53dcc3
commit
8a8837bfd8
1 changed files with 1 additions and 1 deletions
|
@ -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'):
|
||||||
|
|
Loading…
Reference in a new issue