mirror of
https://github.com/Nick80835/microbot
synced 2025-08-22 01:58:17 +00:00
rename force_hard_prefix to force_standard_prefix, oops
This commit is contained in:
parent
cc38f11c81
commit
c4e0dcc884
@ -31,7 +31,7 @@ class Command:
|
||||
self.chance = args.get("chance", None)
|
||||
self.fun = args.get("fun", False)
|
||||
self.not_disableable = args.get("no_disable", False) or self.owner or self.sudo or self.admin
|
||||
self.force_hard_prefix = args.get("force_hard_prefix", False)
|
||||
self.force_standard_prefix = args.get("force_standard_prefix", False)
|
||||
self.no_private = args.get("no_private", False)
|
||||
self.private_only = args.get("private_only", False)
|
||||
self.silent_bail = args.get("silent_bail", False)
|
||||
|
@ -55,7 +55,7 @@ class CommandHandler():
|
||||
elif command.raw_pattern:
|
||||
pattern_match = search(RAW_PATTERN_TEMPLATE.format(command.pattern + command.pattern_extra), event.raw_text, IGNORECASE|DOTALL)
|
||||
else:
|
||||
if command.not_disableable or command.force_hard_prefix:
|
||||
if command.not_disableable or command.force_standard_prefix:
|
||||
prefix_list = self.hard_prefix + [chat_prefix] + ["/"]
|
||||
else:
|
||||
prefix_list = self.hard_prefix + [chat_prefix]
|
||||
|
@ -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", force_hard_prefix=True)
|
||||
@ldr.add("privacy", force_standard_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. "
|
||||
|
Loading…
x
Reference in New Issue
Block a user