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:
parent
e0e9743461
commit
ca69cf4244
2 changed files with 13 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -139,3 +139,4 @@ $RECYCLE.BIN/
|
|||
*.lnk
|
||||
.idea/
|
||||
discordtoken.txt
|
||||
db.json
|
12
overwatch.py
Normal file
12
overwatch.py
Normal 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"])
|
Loading…
Reference in a new issue