This commit is contained in:
Victor Fors 2022-04-06 00:22:02 +02:00
parent 72e0e27127
commit 14c847e06c

View File

@ -61,7 +61,7 @@ def personastate(n):
def main(): def main():
#print('\n'.join([friend['steamid'] for friend in get_friend_list(uid)])) #print('\n'.join([friend['steamid'] for friend in get_friend_list(uid)]))
for player in get_player_summaries([friend['steamid'] for friend in get_friend_list(uid)]): for player in get_player_summaries([friend['steamid'] for friend in get_friend_list(uid)]):
print(player['personaname'] + ': ' + personastate(player['personastate']) + (', ' + player['gameextrainfo'] if 'gameextrainfo' in player else '')) print(player['personaname'] + ': ' + personastate(player['personastate']) + (', playing ' + player['gameextrainfo'] if 'gameextrainfo' in player else ''))
if __name__ == '__main__': if __name__ == '__main__':