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

@ -235,7 +235,8 @@ class CCRole(Cog):
for page in pagify(cmd_list, delims=[" ", "\n"]): for page in pagify(cmd_list, delims=[" ", "\n"]):
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