From bab91c7d65e5ba459bf24097125663c598ee99de Mon Sep 17 00:00:00 2001 From: Kyomotoi <0w0@imki.moe> Date: Mon, 12 Dec 2022 16:11:20 +0800 Subject: =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20=E4=BF=AE=E5=A4=8D=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/setu/data_source.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ATRI') 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: -- cgit v1.2.3 From de5cf242b98888baf9b12522542b4fac4851e6a4 Mon Sep 17 00:00:00 2001 From: XHLin-gamer <73104227+XHLin-gamer@users.noreply.github.com> Date: Fri, 16 Dec 2022 23:51:07 +0900 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3go=5Fcqhttp=E7=9A=84=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当前的下载域名误填写为了下载版本,在config.py中进行了修正 --- ATRI/configs/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ATRI') 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, -- cgit v1.2.3