mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 18:15:28 +03:00
11 lines
285 B
Python
11 lines
285 B
Python
from argenta import Router, Command, Response
|
|
|
|
router = Router(title="System")
|
|
|
|
@router.command(Command(
|
|
"shutdown",
|
|
description="Shutdown the system",
|
|
aliases=["poweroff", "halt", "stop"]
|
|
))
|
|
def handle_shutdown(response: Response):
|
|
print("Shutting down the system...") |