From 2dd1df3b09664001f8a45dc70b9e26cc0ab63ee8 Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Sat, 21 Jul 2018 17:25:18 -0500 Subject: [PATCH] info now handles spaces in names --- Geoffrey.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Geoffrey.py b/Geoffrey.py index aac0e0b..d3483a9 100644 --- a/Geoffrey.py +++ b/Geoffrey.py @@ -287,7 +287,7 @@ async def selling(ctx, item_name: str): @bot.command(pass_context=True) -async def info(ctx, name: str): +async def info(ctx, * args): ''' Displays info about a location. @@ -296,6 +296,7 @@ async def info(ctx, name: str): ?info [Location Name] ''' try: + name = ' '.join(args) loc = database_interface.find_location_by_name(name)[0] except IndexError: await bot.say('{}, no locations in the database match {}.'.format(ctx.message.author.mention, name))