From 5a55d346d4fcf3d6b3f8bbc712d61fc38c753e6f Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Fri, 19 Aug 2016 18:02:12 -0500 Subject: [PATCH] Corrected syntax error --- cogs/steam.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cogs/steam.py b/cogs/steam.py index d010b0b..0624b40 100644 --- a/cogs/steam.py +++ b/cogs/steam.py @@ -85,7 +85,7 @@ class Steam: @commands.group(pass_context=True, invoke_without_command=True) @checks.custom_perms(send_messages=True) - async def steam(self, ctx, member: discord.Member, *option: str=["info"]): + async def steam(self, ctx, member: discord.Member, *option: str=None): """Handles linking/looking information for a certain user Call this command by itself with a user, to view some information about that user's steam account, if it is linked @@ -96,7 +96,8 @@ class Steam: except AttributeError: await self.bot.say("Sorry, but I don't have that user's steam account saved!") return - + if option is None: + option = ['info'] # Set the url based on which option is provided if option[0] == "info": url = "{}/ISteamUser/GetPlayerSummaries/v0002/?key={}&steamids={}".format(base_url, self.key, steam_id)