1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Started work on overwatch module

This commit is contained in:
Steffo 2016-08-12 16:40:22 +02:00
parent e0e9743461
commit ca69cf4244
2 changed files with 13 additions and 0 deletions

1
.gitignore vendored
View file

@ -139,3 +139,4 @@ $RECYCLE.BIN/
*.lnk *.lnk
.idea/ .idea/
discordtoken.txt discordtoken.txt
db.json

12
overwatch.py Normal file
View file

@ -0,0 +1,12 @@
import asyncio
import aiohttp
import json
# Get player database from the db.json file
db = json.load("db.json")
# List overwatch players
players = list()
for player in db:
if player["overwatch"] is not None:
players.append(player["overwatch"])