|
|
|
@ -35,8 +35,8 @@ class Notifications:
|
|
|
|
|
def run(self, server, datacenter):
|
|
|
|
|
refOfServer = Settings().get("config/refToName.yml")
|
|
|
|
|
self.apprise.notify(
|
|
|
|
|
body="{} is available {}".format(refOfServer[server], datacenter),
|
|
|
|
|
title="{} is available \o/".format(refOfServer[server], datacenter),
|
|
|
|
|
body="",
|
|
|
|
|
title="Le serveur {} disponible au datacenter de {}".format(refOfServer[server], datacenter),
|
|
|
|
|
notify_type=apprise.NotifyType.INFO,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
@ -77,7 +77,12 @@ class Notifications:
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
def _addDiscord(self):
|
|
|
|
|
return True
|
|
|
|
|
self.apprise.add(
|
|
|
|
|
"discord://{}/{}/".format(
|
|
|
|
|
self.config["discord"]["webhookid"],
|
|
|
|
|
self.config["discord"]["webhooktoken"],
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
def _addMatrix(self):
|
|
|
|
|
self.apprise.add(
|
|
|
|
@ -88,4 +93,3 @@ class Notifications:
|
|
|
|
|
self.config["matrix"]["room_id"],
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
return True
|
|
|
|
|