From ca69cf4244e7f85f0be391965ebb88d8f0af4c6a Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 12 Aug 2016 16:40:22 +0200 Subject: [PATCH] Started work on overwatch module --- .gitignore | 1 + overwatch.py | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 overwatch.py diff --git a/.gitignore b/.gitignore index 3efbd1ab..887bf779 100644 --- a/.gitignore +++ b/.gitignore @@ -139,3 +139,4 @@ $RECYCLE.BIN/ *.lnk .idea/ discordtoken.txt +db.json \ No newline at end of file diff --git a/overwatch.py b/overwatch.py new file mode 100644 index 00000000..e23bcad2 --- /dev/null +++ b/overwatch.py @@ -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"]) \ No newline at end of file