add important todo
This commit is contained in:
parent
f07219aa8e
commit
bf6bf954e7
1 changed files with 3 additions and 3 deletions
6
lib.py
6
lib.py
|
@ -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>_"""
|
||||||
"""
|
|
Loading…
Reference in a new issue