Update ccrole.py (#60)

Thanks for the help!
This commit is contained in:
Ianardo DiCaprio 2019-07-18 19:29:11 +01:00 committed by bobloy
parent b20b098076
commit aa25cb1f3c

View File

@ -235,7 +235,8 @@ class CCRole(Cog):
for page in pagify(cmd_list, delims=[" ", "\n"]):
await ctx.author.send(box(page))
await ctx.send("Command list DM'd")
@commands.Cog.listener()
async def on_message(self, message):
if len(message.content) < 2 or message.guild is None:
return