This commit is contained in:
Yasir Aris M 2023-10-01 22:20:59 +07:00 committed by GitHub
parent a7cb3f2a6f
commit 714a31cb0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,6 @@
from asyncio import gather
from httpx import AsyncClient, Timeout
from misskaty import app
from aiohttp import ClientSession
# Aiohttp Async Client
@ -17,7 +16,6 @@ fetch = AsyncClient(
},
timeout=Timeout(20),
)
app.fetch = fetch
async def get(url: str, *args, **kwargs):

View file

@ -10,7 +10,8 @@ import sys
from logging import getLogger
from os.path import basename, dirname, isfile
from misskaty import MOD_LOAD, MOD_NOLOAD
from misskaty import app, MOD_LOAD, MOD_NOLOAD
from misskaty.helper.http import fetch
LOGGER = getLogger("MissKaty")
@ -48,6 +49,7 @@ def __list_all_modules():
return all_modules
app.fetch = fetch
LOGGER.info("[INFO]: IMPORTING PLUGINS")
importlib.import_module("misskaty.plugins.__main__")