diff --git a/lib.py b/lib.py index 2b1c5ab..c3193cd 100644 --- a/lib.py +++ b/lib.py @@ -19,15 +19,15 @@ def CheckSystemdService(service : str): return "🟢 UP" if not bool(stat) else "🔴 down" def HandleSystemdService(service : str, action : str): + #TODO: Check service constraint !important stat = subprocess.call(["systemctl", action, "--quiet", service]) return not bool(stat) def BuildHelpList(): return """Bot has the following commands: `help`: Get this help message - `info`: List all available games, their status and their slug + `info`: List all available games, their status and their __ `start `: Start game with slug __ `stop `: Stop game with slug __ `restart `: Stop game with slug __ - `status `: Show status for game with slug __ - """ \ No newline at end of file + `status `: Show status for game with slug __""" \ No newline at end of file