diff options
author | SakuraMemory <[email protected]> | 2022-05-19 17:34:02 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2022-05-19 17:34:02 +0800 |
commit | a592d64297155f40fce3bc68839ebaf9f0bed3c2 (patch) | |
tree | 87744575d3313f6e920f8d73bd37f021e5691bce /ATRI/plugins/kimo/__init__.py | |
parent | bb624bdd6279335861205d87dae61780775f7b10 (diff) | |
parent | 556ce306a6de1ae8804e00a1a88ecde2f59f2d10 (diff) | |
download | ATRI-a592d64297155f40fce3bc68839ebaf9f0bed3c2.tar.gz ATRI-a592d64297155f40fce3bc68839ebaf9f0bed3c2.tar.bz2 ATRI-a592d64297155f40fce3bc68839ebaf9f0bed3c2.zip |
Merge pull request #7 from Kyomotoi/main
merge master
Diffstat (limited to 'ATRI/plugins/kimo/__init__.py')
-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 |