summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2021-10-16 19:02:28 +0800
committerKyomotoi <[email protected]>2021-10-16 19:02:28 +0800
commitd789b1ae77f4415dab062c4af516e303dc447ddc (patch)
treee721c7ff627ed5a9658aa2080b7f73b3bf1f618d
parent906aafadd9f9db8ee52104fdfcb668f655387cb0 (diff)
downloadATRI-d789b1ae77f4415dab062c4af516e303dc447ddc.tar.gz
ATRI-d789b1ae77f4415dab062c4af516e303dc447ddc.tar.bz2
ATRI-d789b1ae77f4415dab062c4af516e303dc447ddc.zip
🐛 修复一个 bug
-rw-r--r--ATRI/plugins/curse.py2
-rw-r--r--ATRI/plugins/saucenao/__init__.py2
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))