From d789b1ae77f4415dab062c4af516e303dc447ddc Mon Sep 17 00:00:00 2001 From: Kyomotoi Date: Sat, 16 Oct 2021 19:02:28 +0800 Subject: =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AA=20b?= =?UTF-8?q?ug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/curse.py | 2 +- ATRI/plugins/saucenao/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ATRI/plugins/curse.py b/ATRI/plugins/curse.py index edd6249..85fe6d9 100644 --- a/ATRI/plugins/curse.py +++ b/ATRI/plugins/curse.py @@ -26,7 +26,7 @@ class Curse(Service): @staticmethod async def now() -> str: res = await request.get(URL) - result = await res.text # type: ignore + result = res.text return result diff --git a/ATRI/plugins/saucenao/__init__.py b/ATRI/plugins/saucenao/__init__.py index d0bf606..fed1096 100644 --- a/ATRI/plugins/saucenao/__init__.py +++ b/ATRI/plugins/saucenao/__init__.py @@ -53,6 +53,6 @@ async def _deal_search(bot: Bot, event: MessageEvent, state: T_State): except Exception: await saucenao.finish("失败了...") - result = f"> {MessageSegment.at(user_id)}" + await a.search(img[0]) + result = f"> {MessageSegment.at(user_id)}" + await a.search(img[0]) # type: ignore _search_flmt.start_cd(user_id) await saucenao.finish(Message(result)) -- cgit v1.2.3