1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Disallow prefixes over 20 characters

This commit is contained in:
Phxntxm 2017-04-06 16:41:31 -05:00
parent f31dc9c24b
commit d0f96db9b5

View file

@ -364,6 +364,9 @@ class Mod:
EXAMPLE: !prefix new_prefix
RESULT: You probably screwing it up and not realizing you now need to do new_prefixprefix"""
key = str(ctx.message.guild.id)
if len(prefix.strip()) > 20:
await ctx.send("Please keep prefixes under 20 characters")
return
if prefix.lower().strip() == "none":
prefix = None