mirror of
https://github.com/MuRuLOSE/limoka.git
synced 2026-06-18 07:04:19 +02:00
Added and updated repositories 2026-01-10 01:09:56
This commit is contained in:
@@ -26,12 +26,15 @@
|
||||
# scope: api HikkaHost 0.0.1
|
||||
# ---------------------------------------------------------------------------------
|
||||
|
||||
import aiohttp
|
||||
import json
|
||||
import logging
|
||||
from datetime import datetime, timedelta, timezone
|
||||
|
||||
import aiohttp
|
||||
|
||||
from .. import loader, utils
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
class HostApi:
|
||||
"""
|
||||
@@ -55,7 +58,7 @@ class HostApi:
|
||||
Returns:
|
||||
dict: The API response as a dictionary.
|
||||
"""
|
||||
url = "http://158.160.84.24:5000" + path
|
||||
url = "http://api.hikka.host" + path
|
||||
async with aiohttp.ClientSession(trust_env=True) as session:
|
||||
async with session.request(
|
||||
method,
|
||||
@@ -311,4 +314,4 @@ class HikkahostMod(loader.Module):
|
||||
user_id = token.split(":")[0]
|
||||
api = HostApi(token)
|
||||
|
||||
data = await api.action(user_id, token)
|
||||
await api.action(user_id, token)
|
||||
|
||||
Reference in New Issue
Block a user