add important todo

This commit is contained in:
Adora Laura Kalb 2024-01-01 13:12:26 +01:00
parent f07219aa8e
commit bf6bf954e7
Signed by: adoralaura
GPG key ID: 7A4552166FC8C056

6
lib.py
View file

@ -19,15 +19,15 @@ def CheckSystemdService(service : str):
return "🟢 UP" if not bool(stat) else "🔴 down" return "🟢 UP" if not bool(stat) else "🔴 down"
def HandleSystemdService(service : str, action : str): def HandleSystemdService(service : str, action : str):
#TODO: Check service constraint !important
stat = subprocess.call(["systemctl", action, "--quiet", service]) stat = subprocess.call(["systemctl", action, "--quiet", service])
return not bool(stat) return not bool(stat)
def BuildHelpList(): def BuildHelpList():
return """Bot has the following commands: return """Bot has the following commands:
`help`: Get this help message `help`: Get this help message
`info`: List all available games, their status and their slug `info`: List all available games, their status and their _<slug>_
`start <slug>`: Start game with slug _<slug>_ `start <slug>`: Start game with slug _<slug>_
`stop <slug>`: Stop game with slug _<slug>_ `stop <slug>`: Stop game with slug _<slug>_
`restart <slug>`: Stop game with slug _<slug>_ `restart <slug>`: Stop game with slug _<slug>_
`status <slug>`: Show status for game with slug _<slug>_ `status <slug>`: Show status for game with slug _<slug>_"""
"""