1
0
Fork 0
mirror of synced 2024-07-01 04:30:51 +12:00

Added a check to see if the bot's steam info was being looked up

This commit is contained in:
Phxntxm 2016-08-19 18:44:18 -05:00
parent 6c3fa02134
commit e64e47c640

View file

@ -90,6 +90,11 @@ class Steam:
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
Option can be achievements, games, info and will default to info""" Option can be achievements, games, info and will default to info"""
# First make sure the person requested isn't the bot
# Need to keep up the bot's sassy attitude, right?
if member == ctx.message.server.me:
await self.bot.say("I don't play video games anymore, I crushed everyone so badly I made everyone cry last time.")
return
# Get the user's steam id if it exists # Get the user's steam id if it exists
try: try:
steam_id = config.get_content('steam_users').get(member.id).get('steam_id') steam_id = config.get_content('steam_users').get(member.id).get('steam_id')