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):