积分赠送功能插件化
抖音真实地址获取插件化
This commit is contained in:
17
robot.py
17
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 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
|
||||
from group_auto.group_auto_invite import get_first_group_id, process_command
|
||||
@@ -34,7 +33,6 @@ from plugin_common.message_plugin_interface import MessagePluginInterface
|
||||
from plugin_common.plugin_interface import PluginStatus
|
||||
from plugin_common.plugin_manager import PluginManager
|
||||
from plugin_common.plugin_registry import PluginRegistry
|
||||
from point_trade.main import PointTrade
|
||||
from robot_cmd.robot_command import GroupBotManager
|
||||
from job_mgmt import Job
|
||||
from robot_cmd.robot_command import Feature
|
||||
@@ -118,12 +116,8 @@ class Robot(Job):
|
||||
self.gmc = GroupMemberChange(wcf, self.redis_pool)
|
||||
# 签到模块加载
|
||||
self.signin = SignInSystem(wcf, self.gbm, self.allContacts, self.db_pool, self.redis_pool, self.message_util)
|
||||
# 积分赠送功能加载
|
||||
self.trade = PointTrade(wcf, self.gbm, self.db_pool)
|
||||
# 加群测试
|
||||
self.group_add = GroupAdd(wcf, self.gbm)
|
||||
# 抖音转视频
|
||||
self.douyin = DouyinParser(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):
|
||||
@@ -328,17 +322,6 @@ class Robot(Job):
|
||||
except Exception as e:
|
||||
self.LOG.error(f"member_sign_in error: {e}")
|
||||
|
||||
# 加入积分赠与功能
|
||||
try:
|
||||
self.trade.handle_text(message=msg)
|
||||
except Exception as e:
|
||||
self.LOG.error(f"point trade error: {e}")
|
||||
# 抖音组件
|
||||
try:
|
||||
self.douyin.handle_douyin_links(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)
|
||||
return # 处理完群聊信息,后面就不需要处理了
|
||||
|
||||
Reference in New Issue
Block a user