feat: Gotify module

This commit is contained in:
leko
2024-08-14 01:40:59 +08:00
committed by GitHub
parent 36647bb85b
commit 5f6920f8df
5 changed files with 60 additions and 0 deletions

View File

@@ -584,6 +584,7 @@ class Twitch(object):
"skip_discord": True,
"skip_webhook": True,
"skip_matrix": True,
"skip_gotify": True
},
)
@@ -603,6 +604,11 @@ class Twitch(object):
"\n".join(drop_messages),
Events.DROP_STATUS,
)
if Settings.logger.gotify is not None:
Settings.logger.gotify.send(
"\n".join(drop_messages),
Events.DROP_STATUS,
)
except requests.exceptions.ConnectionError as e:
logger.error(