1
0
Fork 0
mirror of synced 2024-06-10 14:44:32 +12:00

Added some aliases, corrected who was looked up for csgo stats

This commit is contained in:
Phxntxm 2016-08-21 20:13:39 -05:00
parent b6a2f491ef
commit 20981729bd
3 changed files with 5 additions and 4 deletions

View file

@ -159,7 +159,7 @@ class Hangman:
await self.bot.say(
"Alright, a hangman game has just started, you can start guessing now!\n{}".format(str(game)))
@hangman.command(name='delete', aliases=['stop', 'remove'], pass_context=True, no_pm=True)
@hangman.command(name='delete', aliases=['stop', 'remove', 'end'], pass_context=True, no_pm=True)
@checks.custom_perms(kick_members=True)
async def stop_game(self, ctx):
"""Force stops a game of hangman

View file

@ -234,10 +234,11 @@ class Steam:
@commands.command(pass_context=True)
@checks.custom_perms(send_messages=True)
async def csgo(self, ctx, member: discord.Member):
async def csgo(self, ctx, member: discord.Member = None):
"""This command can be used to lookup csgo stats for a user"""
member = member or ctx.message.author
try:
steam_id = config.get_content('steam_users').get(ctx.message.author.id).get('steam_id')
steam_id = config.get_content('steam_users').get(member.id).get('steam_id')
except AttributeError:
await self.bot.say("Sorry, but I don't have that user's steam account saved!")
return

View file

@ -265,7 +265,7 @@ class TicTacToe:
x_player.display_name)
await self.bot.say(fmt)
@tictactoe.command(name='delete', aliases=['stop', 'remove'], pass_context=True, no_pm=True)
@tictactoe.command(name='delete', aliases=['stop', 'remove', 'end'], pass_context=True, no_pm=True)
@checks.custom_perms(kick_members=True)
async def stop_game(self, ctx):
"""Force stops a game of tictactoe