From 2abccb5960cc57e6d8ef8823df5340cb357a6b38 Mon Sep 17 00:00:00 2001 From: Kyomotoi Date: Sat, 14 May 2022 00:01:14 +0800 Subject: =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20=E9=98=BB=E6=AD=A2=E5=8F=91?= =?UTF-8?q?=E9=80=81=E7=A9=BA=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/kimo/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ATRI') diff --git a/ATRI/plugins/kimo/__init__.py b/ATRI/plugins/kimo/__init__.py index b1c5698..31ecab1 100644 --- a/ATRI/plugins/kimo/__init__.py +++ b/ATRI/plugins/kimo/__init__.py @@ -21,7 +21,8 @@ async def _chat(event: MessageEvent): msg = str(event.message) repo = await Kimo().deal(msg, user_id) try: - await kimo.finish(repo) + if repo: + await kimo.send(repo) except Exception: return -- cgit v1.2.3