From fdd29bd60962e7a3521b064aa370298764febd44 Mon Sep 17 00:00:00 2001 From: Kyomotoi Date: Sun, 12 Dec 2021 08:56:39 +0800 Subject: =?UTF-8?q?=F0=9F=94=A5=20=E5=9B=9E=E6=BB=9A=E8=87=B3commit:`b19cf?= =?UTF-8?q?7768a70cf639853d9d33a6ab2a3d56e7045`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/chat/__init__.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ATRI/plugins/chat/__init__.py') diff --git a/ATRI/plugins/chat/__init__.py b/ATRI/plugins/chat/__init__.py index 7436645..723ee25 100644 --- a/ATRI/plugins/chat/__init__.py +++ b/ATRI/plugins/chat/__init__.py @@ -7,7 +7,6 @@ from ATRI.utils import CoolqCodeChecker from ATRI.utils.limit import FreqLimiter from ATRI.utils.apscheduler import scheduler from .data_source import Chat -from ATRI.plugins.atri_chat_bot import ATRIChatBot _chat_flmt = FreqLimiter(3) _chat_flmt_notice = choice(["慢...慢一..点❤", "冷静1下", "歇会歇会~~", "我开始为你以后的伴侣担心了..."]) @@ -27,10 +26,7 @@ async def _chat(bot: Bot, event: MessageEvent): repo = await Chat().deal(msg, user_id) _chat_flmt.start_cd(user_id) try: - if repo: - await chat.finish(repo) - else: # 实在没话说就尝试 chatterbot - await chat.finish(await ATRIChatBot.get_response(msg)) + await chat.finish(repo) except Exception: return -- cgit v1.2.3