From 299aa803641681572a3c8764ab5c18b917c31bb7 Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Sun, 27 Jan 2019 20:53:13 -0600 Subject: [PATCH] Moved "I sent you some help in the dms" message to the help command --- GeoffreyBot/geoffrey.py | 3 --- GeoffreyBot/geoffrey_api.py | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GeoffreyBot/geoffrey.py b/GeoffreyBot/geoffrey.py index 78891ae..503815e 100644 --- a/GeoffreyBot/geoffrey.py +++ b/GeoffreyBot/geoffrey.py @@ -71,9 +71,6 @@ class GeoffreyBot(commands.Bot): logger.info("User %s, used command %s%s with context: %s", ctx.message.author, ctx.command.name, subcommand, ctx.args) - if ctx.invoked_with.lower() == 'help' and ctx.message.guild is not None: - await ctx.send("{}, I sent you some help in the DMs.".format(ctx.message.author.mention)) - async def on_command_error(self, ctx, error): error_str = "" if isinstance(error, commands.errors.CommandNotFound): diff --git a/GeoffreyBot/geoffrey_api.py b/GeoffreyBot/geoffrey_api.py index 97c124f..c81bf1f 100644 --- a/GeoffreyBot/geoffrey_api.py +++ b/GeoffreyBot/geoffrey_api.py @@ -346,6 +346,9 @@ class GeoffreyCommands: @commands.command(pass_context=True) async def help(self, ctx, *args): + if ctx.message.guild is not None: + await ctx.send("{}, I sent you some help in the DMs.".format(ctx.message.author.mention)) + if len(args) > 0: command = args[0].lower() try: