Moved "I sent you some help in the dms" message to the help command

master
Joey Hines 2019-01-27 20:53:13 -06:00
parent 6b426b348e
commit 299aa80364
2 changed files with 3 additions and 3 deletions

View File

@ -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, logger.info("User %s, used command %s%s with context: %s", ctx.message.author, ctx.command.name, subcommand,
ctx.args) 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): async def on_command_error(self, ctx, error):
error_str = "" error_str = ""
if isinstance(error, commands.errors.CommandNotFound): if isinstance(error, commands.errors.CommandNotFound):

View File

@ -346,6 +346,9 @@ class GeoffreyCommands:
@commands.command(pass_context=True) @commands.command(pass_context=True)
async def help(self, ctx, *args): 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: if len(args) > 0:
command = args[0].lower() command = args[0].lower()
try: try: