From 5bccc2e569440756c123dc43e2150008c0085566 Mon Sep 17 00:00:00 2001 From: Agg <20499608+AggPro@users.noreply.github.com> Date: Sat, 9 Jun 2018 18:31:57 +0300 Subject: [PATCH 1/2] DMing help command d --- src/cogs/basic_commands.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/cogs/basic_commands.py b/src/cogs/basic_commands.py index b69c5c5..77a7095 100644 --- a/src/cogs/basic_commands.py +++ b/src/cogs/basic_commands.py @@ -36,21 +36,21 @@ class BasicCommands: else: if msg.content.lower() in agree: async with ctx.typing(): - await ctx.send("Alrighty-Roo...") - await ctx.send(f"""To start making your bot from scratch, you first need to head over to {channel_list['channel-1']} + await ctx.author.send("Alrighty-Roo...") + await ctx.author.send(f"""To start making your bot from scratch, you first need to head over to {channel_list['channel-1']} (Regardless of the language you're gonna use).""") - await ctx.send(f"""After you have a bot account, you can either continue with {channel_list['d.py-rewrite-start']} + await ctx.author.send(f"""After you have a bot account, you can either continue with {channel_list['d.py-rewrite-start']} if you want to make a bot in discord.py rewrite __or__ go to {channel_list['js-klasa-start']} or {channel_list['d.js']} for making a bot in JavaScript""") - await ctx.send("...Read all the tutorials and still need help? You have two ways to get help.") - await ctx.send(f"""**Method-1**\nThis is the best method of getting help. You help yourself.\n + await ctx.author.send("...Read all the tutorials and still need help? You have two ways to get help.") + await ctx.author.send(f"""**Method-1**\nThis is the best method of getting help. You help yourself.\n To do so, head over to a bots dedicated channel (either {bots_channels[0]} or {bots_channels[1]}) and type `?rtfm rewrite thing_you_want_help_with`.\nThis will trigger the bot R.Danny Bot and will give you links on your query on the official discord.py rewrite docs. *PS: Let the page completely load*""") - await ctx.send(f"""**Method-2**\nIf you haven't found anything useful with Method-1, feel free to ask your question + await ctx.author.send(f"""**Method-2**\nIf you haven't found anything useful with Method-1, feel free to ask your question in any of the related help channels. ({', '.join(help_channels)})\nMay the force be with you!!""") else: - return await ctx.send("Session terminated. You can run this command again whenever you want.") + return await ctx.author.send("Session terminated. You can run this command again whenever you want.") def setup(bot): - bot.add_cog(BasicCommands(bot)) \ No newline at end of file + bot.add_cog(BasicCommands(bot)) From 5e5fd193901e46b5c6562c254f2bbf887382207f Mon Sep 17 00:00:00 2001 From: Agg <20499608+AggPro@users.noreply.github.com> Date: Tue, 12 Jun 2018 09:37:19 +0300 Subject: [PATCH 2/2] updated my pull request so it says that the person gets dmed --- src/cogs/basic_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cogs/basic_commands.py b/src/cogs/basic_commands.py index 77a7095..f6df868 100644 --- a/src/cogs/basic_commands.py +++ b/src/cogs/basic_commands.py @@ -36,7 +36,7 @@ class BasicCommands: else: if msg.content.lower() in agree: async with ctx.typing(): - await ctx.author.send("Alrighty-Roo...") + await ctx.send("Alrighty-Roo... Check your DMs!") await ctx.author.send(f"""To start making your bot from scratch, you first need to head over to {channel_list['channel-1']} (Regardless of the language you're gonna use).""") await ctx.author.send(f"""After you have a bot account, you can either continue with {channel_list['d.py-rewrite-start']}