2
0
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:
Nick80835
2021-03-24 10:34:55 -04:00
parent 7295fabd2c
commit 7e9cd94ff7

View File

@@ -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)