2
0
mirror of https://github.com/Nick80835/microbot synced 2025-09-05 17:05:52 +00:00

allow commands to force the '/' prefix while being disableable

This commit is contained in:
Nick80835
2024-07-03 15:55:39 -04:00
parent fd4266ae7c
commit cc38f11c81
3 changed files with 3 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ async def help_cmd(event):
await event.reply(f"{prefix_help}<b>Available commands:</b>\n\n{help_string}", parse_mode="html")
@ldr.add("privacy")
@ldr.add("privacy", force_hard_prefix=True)
async def privacy_policy(event):
await event.reply(
f"This bot (\"**{bot_name}**\") stores the IDs of chats in which it receives messages as well as configurations associated with those chats such as command prefixes and disabled commands. "