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

Ensure more than one string is provided

This commit is contained in:
Phxntxm 2017-03-20 16:18:29 -05:00
parent 6de148a1c7
commit 11cee7e7a4

View file

@ -272,6 +272,10 @@ class Mod:
# Since subcommands exist, base the last word in the list as the permission, and the rest of it as the command
command = " ".join(msg[0:len(msg) - 1])
if command == "":
await ctx.send("Please provide the permissions you want to setup, the format for this must be in:\n"
"`perms add <command> <permission>`")
return
try:
permissions = msg[len(msg) - 1]
except IndexError: