feat 清理无效的插件事件响应

This commit is contained in:
jxxghp
2023-10-12 12:48:40 +08:00
parent eb3c09a3d3
commit cbccac87f0
3 changed files with 27 additions and 18 deletions

View File

@ -198,7 +198,7 @@ class ChatGPT(_PluginBase):
title = event.event_data.get("title")
if not title:
return
# 收到事件后需要立码返回
# 收到事件后需要立码返回,避免主程序等待
if not self._enabled \
or not self.openai \
or not self._recognize: