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: