Corrected syntax error
This commit is contained in:
parent
5a55d346d4
commit
d0f7d8d784
1 changed files with 1 additions and 3 deletions
|
@ -85,7 +85,7 @@ class Steam:
|
||||||
|
|
||||||
@commands.group(pass_context=True, invoke_without_command=True)
|
@commands.group(pass_context=True, invoke_without_command=True)
|
||||||
@checks.custom_perms(send_messages=True)
|
@checks.custom_perms(send_messages=True)
|
||||||
async def steam(self, ctx, member: discord.Member, *option: str=None):
|
async def steam(self, ctx, member: discord.Member, *option: str):
|
||||||
"""Handles linking/looking information for a certain user
|
"""Handles linking/looking information for a certain user
|
||||||
Call this command by itself with a user, to view some information
|
Call this command by itself with a user, to view some information
|
||||||
about that user's steam account, if it is linked
|
about that user's steam account, if it is linked
|
||||||
|
@ -96,8 +96,6 @@ class Steam:
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
await self.bot.say("Sorry, but I don't have that user's steam account saved!")
|
await self.bot.say("Sorry, but I don't have that user's steam account saved!")
|
||||||
return
|
return
|
||||||
if option is None:
|
|
||||||
option = ['info']
|
|
||||||
# Set the url based on which option is provided
|
# Set the url based on which option is provided
|
||||||
if option[0] == "info":
|
if option[0] == "info":
|
||||||
url = "{}/ISteamUser/GetPlayerSummaries/v0002/?key={}&steamids={}".format(base_url, self.key, steam_id)
|
url = "{}/ISteamUser/GetPlayerSummaries/v0002/?key={}&steamids={}".format(base_url, self.key, steam_id)
|
||||||
|
|
Loading…
Reference in a new issue