aboutsummaryrefslogtreecommitdiff
path: root/modules/healthcheck.py
blob: 0b13af0ddd424da1f0c81a4739e068bfca488caf (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
#--require-config healthcheck-url

from src import ModuleManager, utils

class Module(ModuleManager.BaseModule):
    @utils.hook("cron")
    @utils.kwarg("schedule", "*/10")
    def ten_minutes(self, event):
        utils.http.request(self.bot.config["healthcheck-url"])