Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
djetelina committed May 19, 2016
1 parent 143568a commit 520a33c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
10 changes: 5 additions & 5 deletions cogs/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ async def steam(self):
async with session.get(steam_api)as resp:
data = await resp.json()
if str(data["result"]["success"]) == "True":
login = (data["result"]["SteamStatus"]["services"]["SessionsLogon"]).capitalize
community = (data["result"]["SteamStatus"]["services"]["SteamCommunity"]).capitalize
economy = (data["result"]["SteamStatus"]["services"]["IEconItems"]).capitalize
leaderboards = (data["result"]["SteamStatus"]["services"]["LeaderBoards"]).capitalize
login = (data["result"]["SteamStatus"]["services"]["SessionsLogon"]).capitalize()
community = (data["result"]["SteamStatus"]["services"]["SteamCommunity"]).capitalize()
economy = (data["result"]["SteamStatus"]["services"]["IEconItems"]).capitalize()
leaderboards = (data["result"]["SteamStatus"]["services"]["LeaderBoards"]).capitalize()

reply = """__**Steam Status**__
Expand All @@ -131,7 +131,7 @@ async def steam(self):

await s.destructmsg(reply, 30, self.bot)

@commands.command(pass_context=True, description=desc.releasae_dates, brief=desc.releasae_dates)
@commands.command(pass_context=True, description=desc.release_dates, brief=desc.release_datesb)
async def release(self, ctx):
"""
We are using manual argument detection instead of @commands.group,
Expand Down
6 changes: 5 additions & 1 deletion descriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@
time_london = "Checks local time in London and it's GMT position"
time_ny = "Checks local time in New York and it's GMT position"
time_sf = "Checks local time in San Francisco and it's GMT position"
releasae_dates = "List of games and countdown till their releases"
release_dates = """List of games and countdown until their releases
If you provide additional argument, it will look through list of games and find those starting with provided argument
Example: !release over"""
release_datesb = "List of games and countdown until their releases"
steam_status = "Check Status of Steam Servers"

"""
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def on_message(message):


@bot.event
async def on_command(command):
async def on_command(command, ctx):
stats = bot.get_cog('Stats')

if stats is not None:
Expand Down

0 comments on commit 520a33c

Please sign in to comment.