Update ccrole.py

This commit is contained in:
Ianardo DiCaprio 2019-07-18 17:24:16 +01:00 committed by GitHub
parent b20b098076
commit 755e1f2864
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,6 +236,7 @@ class CCRole(Cog):
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