1
0
Fork 0
mirror of synced 2024-05-20 04:22:29 +12:00

Use already flattened attribute

This commit is contained in:
phxntxm 2017-06-28 05:11:00 -05:00
parent bca36e095b
commit 575ff60590

View file

@ -33,6 +33,10 @@ class Administration:
if len(options) != 3:
await ctx.send("You need to provide 3 options! Such as `command from @User`")
return
elif ctx.message.mention_everyone:
arg1, arg2, arg3 = options
await ctx.send("Please do not restrict something {} everyone".format(arg2))
return
else:
# Get the three arguments from this list, then make sure the 2nd is either from or to
arg1, arg2, arg3 = options