Added some aliases, corrected who was looked up for csgo stats
This commit is contained in:
parent
b6a2f491ef
commit
20981729bd
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue