mirror of
https://github.com/Nick80835/microbot
synced 2025-08-31 06:26:04 +00:00
increase prefix length limit to 3
This commit is contained in:
@@ -56,8 +56,8 @@ async def set_group_prefix(event):
|
||||
await event.reply(f"With this command you can set a custom prefix to replace `/`, the current prefix is `{event.chat_db.get_prefix()}` and this bot will always respond to `{ldr.prefix()}`")
|
||||
return
|
||||
|
||||
if len(event.args) > 2:
|
||||
await event.reply("Custom prefixes must be 1 or 2 characters long!")
|
||||
if len(event.args) > 3:
|
||||
await event.reply("Custom prefixes must be at most 3 characters long!")
|
||||
return
|
||||
|
||||
event.chat_db.set_prefix(event.args)
|
||||
|
Reference in New Issue
Block a user