去除装饰器!
This commit is contained in:
8
robot.py
8
robot.py
@@ -23,7 +23,6 @@ from base.func_claude import Claude
|
|||||||
from configuration import Config
|
from configuration import Config
|
||||||
from constants import ChatType
|
from constants import ChatType
|
||||||
from game_task.game_task_encyclopedia import game_process_message, get_group_ids, run_random_task_assignment
|
from game_task.game_task_encyclopedia import game_process_message, get_group_ids, run_random_task_assignment
|
||||||
from job_decorators import scheduled_job
|
|
||||||
from message_storage.message_to_db import MessageStorage
|
from message_storage.message_to_db import MessageStorage
|
||||||
from plugin_common.event_system import EventType, EventSystem
|
from plugin_common.event_system import EventType, EventSystem
|
||||||
from plugin_common.message_plugin_interface import MessagePluginInterface
|
from plugin_common.message_plugin_interface import MessagePluginInterface
|
||||||
@@ -543,10 +542,3 @@ class Robot(Job):
|
|||||||
self.wcf.send_file(pub_path, "45317011307@chatroom")
|
self.wcf.send_file(pub_path, "45317011307@chatroom")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.LOG.error(f"xiu_ren_pdf_send error:{e}")
|
self.LOG.error(f"xiu_ren_pdf_send error:{e}")
|
||||||
|
|
||||||
@scheduled_job("*/1 * * * *", name="test_job")
|
|
||||||
def send_message(self):
|
|
||||||
try:
|
|
||||||
self.wcf.send_text("定时任务执行!", "filehelper")
|
|
||||||
except Exception as e:
|
|
||||||
self.LOG.error(f"send_message error:{e}")
|
|
||||||
Reference in New Issue
Block a user