mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-03 11:04:51 +00:00
lupa
This commit is contained in:
parent
96caa41d6b
commit
dcfb7e949a
2 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
from .utils import PyromodConfig, patch, patchable
|
from .utils import PyromodConfig, patch, patchable
|
||||||
from .handle_error import handle_error
|
from .handler_error import handle_error
|
||||||
from .admin_utils import check_rights, is_admin
|
from .admin_utils import check_rights, is_admin
|
||||||
from .get_user import get_user
|
from .get_user import get_user
|
||||||
|
|
@ -56,6 +56,7 @@ __HELP__ = """
|
||||||
/unbanuser [chat id] - Unban user and make their can use bot again
|
/unbanuser [chat id] - Unban user and make their can use bot again
|
||||||
/gban - To Ban A User Globally.
|
/gban - To Ban A User Globally.
|
||||||
/ungban - To remove ban user globbaly.
|
/ungban - To remove ban user globbaly.
|
||||||
|
/restart - update and restart bot.
|
||||||
|
|
||||||
**For Public Use**
|
**For Public Use**
|
||||||
/stats - Check statistic bot
|
/stats - Check statistic bot
|
||||||
|
|
@ -493,7 +494,7 @@ async def cmd_eval(self: Client, ctx: Message, strings) -> Optional[str]:
|
||||||
|
|
||||||
|
|
||||||
# Update and restart bot
|
# Update and restart bot
|
||||||
@app.on_message(filters.command(["update"], COMMAND_HANDLER) & filters.user(SUDO))
|
@app.on_message(filters.command(["restart"], COMMAND_HANDLER) & filters.user(SUDO))
|
||||||
@use_chat_lang()
|
@use_chat_lang()
|
||||||
async def update_restart(self: Client, ctx: Message, strings) -> "Message":
|
async def update_restart(self: Client, ctx: Message, strings) -> "Message":
|
||||||
msg = await ctx.reply_msg(strings("up_and_rest"))
|
msg = await ctx.reply_msg(strings("up_and_rest"))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue