mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-06 20:04:51 +00:00
cek coba
This commit is contained in:
parent
a7cb3f2a6f
commit
714a31cb0d
2 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
from asyncio import gather
|
from asyncio import gather
|
||||||
|
|
||||||
from httpx import AsyncClient, Timeout
|
from httpx import AsyncClient, Timeout
|
||||||
from misskaty import app
|
|
||||||
from aiohttp import ClientSession
|
from aiohttp import ClientSession
|
||||||
|
|
||||||
# Aiohttp Async Client
|
# Aiohttp Async Client
|
||||||
|
|
@ -17,7 +16,6 @@ fetch = AsyncClient(
|
||||||
},
|
},
|
||||||
timeout=Timeout(20),
|
timeout=Timeout(20),
|
||||||
)
|
)
|
||||||
app.fetch = fetch
|
|
||||||
|
|
||||||
|
|
||||||
async def get(url: str, *args, **kwargs):
|
async def get(url: str, *args, **kwargs):
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,8 @@ import sys
|
||||||
from logging import getLogger
|
from logging import getLogger
|
||||||
from os.path import basename, dirname, isfile
|
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")
|
LOGGER = getLogger("MissKaty")
|
||||||
|
|
||||||
|
|
@ -48,6 +49,7 @@ def __list_all_modules():
|
||||||
|
|
||||||
return all_modules
|
return all_modules
|
||||||
|
|
||||||
|
app.fetch = fetch
|
||||||
|
|
||||||
LOGGER.info("[INFO]: IMPORTING PLUGINS")
|
LOGGER.info("[INFO]: IMPORTING PLUGINS")
|
||||||
importlib.import_module("misskaty.plugins.__main__")
|
importlib.import_module("misskaty.plugins.__main__")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue