Added .gitignore, Added Inspirobot
This commit is contained in:
parent
ca91cfddaf
commit
2f16876177
5 changed files with 61 additions and 8 deletions
|
@ -11,11 +11,13 @@ class Steam(commands.Cog):
|
|||
@commands.cooldown(1, 2)
|
||||
async def SteamLevel(self, ctx, vanity_url):
|
||||
level = steam.get_steam_level(vanity_url)
|
||||
percentile = round(float(steam.get_steam_level_distribution(level)), 2)
|
||||
if level is not None:
|
||||
await ctx.send(f"{vanity_url} is level {level}! This makes him better than {percentile}% of Steam users!")
|
||||
else:
|
||||
|
||||
if level is None:
|
||||
await ctx.send(f"There is nobody named \"{vanity_url}\" on Steam, or their profile might be pivate.")
|
||||
else:
|
||||
percentile = round(float(steam.get_steam_level_distribution(level)), 2)
|
||||
await ctx.send(f"{vanity_url} is level {level}! This makes him better than {percentile}% of Steam users!")
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue