mirror of
https://github.com/TeamPGM/PagerMaid-Pyro.git
synced 2024-11-25 14:26:24 +00:00
20 lines
510 B
Python
20 lines
510 B
Python
from sys import exit
|
|
|
|
from pagermaid.common.update import update as update_function
|
|
from pagermaid.listener import listener
|
|
from pagermaid.utils import lang, Message, alias_command
|
|
|
|
|
|
@listener(
|
|
is_plugin=False,
|
|
outgoing=True,
|
|
command=alias_command("update"),
|
|
need_admin=True,
|
|
description=lang("update_des"),
|
|
parameters="<true/debug>",
|
|
)
|
|
async def update(message: Message):
|
|
await update_function(len(message.parameter) > 0)
|
|
await message.edit(lang("update_success"))
|
|
exit(0)
|