@hook.command('steamcalc', 'steamdb')
def steamcalc(text):
 user = text.strip().lower()
 try:
  data = get_data(user)
 except SteamError as e:
  return '{}'.format(e)
 data['short_url'] = web.try_shorten(data['url'])
 return '\x02{name}\x02 has \x02{count:,}\x02 games with a total value of \x02{value}\x02 (\x02{value_sales}\x02 during sales). \x02{count_unplayed:,}\x02 (\x02{percent_unplayed}%\x02) have never been played - {short_url}'.format(**data)

@ hook . command ( 'steamcalc' , 'steamdb' ) def steamcalc ( text ) : user = text . strip ( ) . lower ( ) try : data = get_data ( user ) except SteamError as e : return '{}' . format ( e ) data [ 'short_url' ] = web . try_shorten ( data [ 'url' ] ) return '\x02{name}\x02 has \x02{count:,}\x02 games with a total value of \x02{value}\x02 (\x02{value_sales}\x02 during sales). \x02{count_unplayed:,}\x02 (\x02{percent_unplayed}%\x02) have never been played - {short_url}' . format ( ** data )
steamcalc <username> - gets value of steam account .