summaryrefslogtreecommitdiff
path: root/ATRI
diff options
context:
space:
mode:
Diffstat (limited to 'ATRI')
-rw-r--r--ATRI/configs/config.py2
-rw-r--r--ATRI/plugins/setu/data_source.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/ATRI/configs/config.py b/ATRI/configs/config.py
index 3ea0bf7..23cd1bb 100644
--- a/ATRI/configs/config.py
+++ b/ATRI/configs/config.py
@@ -61,7 +61,7 @@ class Config:
command_sep=bot_conf.command_sep,
session_expire_timeout=bot_conf.session_expire_timeout,
gocq_accounts=gocq_conf.accounts,
- gocq_download_domain=gocq_conf.download_version,
+ gocq_download_domain=gocq_conf.download_domain,
gocq_version=gocq_conf.download_version,
gocq_webui_username=gocq_conf.gocq_webui_username,
gocq_webui_password=gocq_conf.gocq_webui_password,
diff --git a/ATRI/plugins/setu/data_source.py b/ATRI/plugins/setu/data_source.py
index 8a1a26d..59f511a 100644
--- a/ATRI/plugins/setu/data_source.py
+++ b/ATRI/plugins/setu/data_source.py
@@ -9,7 +9,7 @@ from .models import SetuInfo
from .nsfw_checker import detect_image, init_model
-__LOLICON_URL = "https://api.lolicon.app/setu/v2"
+_LOLICON_URL = "https://api.lolicon.app/setu/v2"
class Setu:
@@ -29,9 +29,9 @@ class Setu:
Returns:
Tuple[MessageSegment, dict]: 涩图本体, 涩图信息
"""
- url = __LOLICON_URL
+ url = _LOLICON_URL
if tag:
- url = __LOLICON_URL + f"?tag={tag}"
+ url = _LOLICON_URL + f"?tag={tag}"
try:
req = await request.get(url)
except Exception: