mirror of
https://github.com/Nick80835/microbot
synced 2025-09-01 15:05:48 +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()}`")
|
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
|
return
|
||||||
|
|
||||||
if len(event.args) > 2:
|
if len(event.args) > 3:
|
||||||
await event.reply("Custom prefixes must be 1 or 2 characters long!")
|
await event.reply("Custom prefixes must be at most 3 characters long!")
|
||||||
return
|
return
|
||||||
|
|
||||||
event.chat_db.set_prefix(event.args)
|
event.chat_db.set_prefix(event.args)
|
||||||
|
Reference in New Issue
Block a user