Moved "I sent you some help in the dms" message to the help command
parent
6b426b348e
commit
299aa80364
|
@ -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):
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue