Skip to content

Instantly share code, notes, and snippets.

@mymedia2

mymedia2/code.py Secret

Created September 17, 2022 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mymedia2/89807b3f81cd79e7e6a45c922340fce4 to your computer and use it in GitHub Desktop.
Save mymedia2/89807b3f81cd79e7e6a45c922340fce4 to your computer and use it in GitHub Desktop.
import json
def check_nick(id_member=319990365):
with open('nicks.json') as json_file:
data = json.load(json_file)
for x in data['players']:
for y in x['user_{0}'.format(id_member)]:
yield y['nick']
print(*check_nick(), sep='\n')
{
"players": [{
"name": "users",
"user_319990365": [
{
"id": 319990365,
"nick": "developer"
}
]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment