diff options
author | Kyomotoi <[email protected]> | 2022-05-14 00:01:14 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2022-05-14 00:01:14 +0800 |
commit | 2abccb5960cc57e6d8ef8823df5340cb357a6b38 (patch) | |
tree | 5aa61c70379b50a49f3eb7efb0dc630bd8b73311 /ATRI | |
parent | 5c911c71a18e325863b0ef7af78ba04cab78ade2 (diff) | |
download | ATRI-2abccb5960cc57e6d8ef8823df5340cb357a6b38.tar.gz ATRI-2abccb5960cc57e6d8ef8823df5340cb357a6b38.tar.bz2 ATRI-2abccb5960cc57e6d8ef8823df5340cb357a6b38.zip |
🚑️ 阻止发送空消息
Diffstat (limited to 'ATRI')
-rw-r--r-- | ATRI/plugins/kimo/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |