From 33abf6b2871bb0150d342cd0225a411c2d4cb9d8 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Thu, 18 Jun 2020 19:10:04 +0100 Subject: [PATCH] Added a message telling the user that Enso-chan has dm'ed them --- cogs/HelpCommands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cogs/HelpCommands.py b/cogs/HelpCommands.py index 7097b0e6..a9e2ac65 100644 --- a/cogs/HelpCommands.py +++ b/cogs/HelpCommands.py @@ -161,6 +161,8 @@ class CustomHelp(commands.Cog): # Bot ~rules command allows for an embed message about the leveled roles and xp system @commands.command(aliases=["Rules", "rule", "Rule"]) async def rules(self, ctx, target: discord.Member): + author = ctx.message.author + try: embed = discord.Embed(title="```(っ◔◡◔)っ Ensō Rules```", colour=discord.Colour(0xFF69B4), description="``` ヽ(͡◕ ͜ʖ ͡◕)ノ Please respect the following rules that are going to be listed below ヽ(͡◕ ͜ʖ ͡◕)ノ ```") @@ -260,7 +262,7 @@ class CustomHelp(commands.Cog): f", or my co-owner, {target.mention}**", inline=False) - await ctx.send(embed=embed) + await author.send(embed=embed) message = await ctx.send(helpDm())