summaryrefslogtreecommitdiff
path: root/ATRI/plugins/chat
diff options
context:
space:
mode:
Diffstat (limited to 'ATRI/plugins/chat')
-rw-r--r--ATRI/plugins/chat/__init__.py6
1 files changed, 1 insertions, 5 deletions
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