Initial commit

This commit is contained in:
Nemika
2021-03-07 20:55:27 +02:00
commit 2ccb1e6bbc
13 changed files with 355 additions and 0 deletions

6
core/asyncHandler.py Normal file
View File

@@ -0,0 +1,6 @@
import aiohttp
async def get(url, json=True):
async with aiohttp.ClientSession() as session:
async with session.get(url) as response:
return (await response.json()) if json else (await response.text())