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

@ -236,6 +236,7 @@ class CCRole(Cog):
await ctx.author.send(box(page)) await ctx.author.send(box(page))
await ctx.send("Command list DM'd") await ctx.send("Command list DM'd")
@commands.Cog.listener()
async def on_message(self, message): async def on_message(self, message):
if len(message.content) < 2 or message.guild is None: if len(message.content) < 2 or message.guild is None:
return return