From a4a90ea626785e83c994cbb171d1dd111fe3b691 Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Fri, 21 Sep 2018 21:08:14 -0500 Subject: [PATCH] ?help in a private message no longer gives "I send you some help in the DMs" message --- README.md | 5 +++-- geoffrey/bot.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3b6809a..2dfee5f 100644 --- a/README.md +++ b/README.md @@ -76,9 +76,10 @@ Then to find out more info about a location, use `?info`: ``` -`?selling` can be used to find items for sale: +`?selling` can be used to find items for sale. Tip is better search for a subset of the item name. +ig for `enderchests` search `ender`: ``` -?selling dirt +?selling ender ``` You can also search around a position for locations with `?find_around`: diff --git a/geoffrey/bot.py b/geoffrey/bot.py index 114573a..240daf4 100644 --- a/geoffrey/bot.py +++ b/geoffrey/bot.py @@ -78,7 +78,7 @@ class GeoffreyBot(commands.Bot): logger.info("User %s, used command %s%s with context: %s", ctx.message.author, ctx.command, subcommand, ctx.args) - if ctx.invoked_with.lower() == 'help': + 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):