dify 插件化
This commit is contained in:
8
robot.py
8
robot.py
@@ -22,7 +22,6 @@ from base.func_xinghuo_web import XinghuoWeb
|
||||
from base.func_claude import Claude
|
||||
from configuration import Config
|
||||
from constants import ChatType
|
||||
from dify.dify_chat import DifyChat
|
||||
from douyin_parser.main import DouyinParser
|
||||
from game_task.game_task_encyclopedia import game_process_message, get_group_ids,run_random_task_assignment
|
||||
from group_add.main import GroupAdd
|
||||
@@ -125,8 +124,6 @@ class Robot(Job):
|
||||
self.group_add = GroupAdd(wcf, self.gbm)
|
||||
# 抖音转视频
|
||||
self.douyin = DouyinParser(wcf, self.gbm)
|
||||
# DIFY 插件
|
||||
self.dify = DifyChat(wcf, self.gbm)
|
||||
|
||||
if ChatType.is_in_chat_types(chat_type):
|
||||
if chat_type == ChatType.TIGER_BOT.value and TigerBot.value_check(self.config.TIGERBOT):
|
||||
@@ -341,11 +338,6 @@ class Robot(Job):
|
||||
self.douyin.handle_douyin_links(message=msg)
|
||||
except Exception as e:
|
||||
self.LOG.error(f"douyin.handle_douyin_links error: {e}")
|
||||
# dify AI聊天
|
||||
try:
|
||||
self.dify.handle_message(message=msg)
|
||||
except Exception as e:
|
||||
self.LOG.error(f"douyin.handle_douyin_links error: {e}")
|
||||
|
||||
if msg.is_at(self.wxid): # 被@
|
||||
self.toAt(msg)
|
||||
|
||||
Reference in New Issue
Block a user