diff --git a/main.py b/main.py index 4ea8ace..5da922e 100644 --- a/main.py +++ b/main.py @@ -44,9 +44,6 @@ def main(chat_type: int): # sehuatang robot.onEveryTime("15:30", robot.generate_sehuatang_pdf) - # 游戏的定时任务每小时执行 - robot.onEveryTime("17:58", robot.game_auto_tasks) - # 秀人网每天自动下载帖子 robot.onEveryTime("01:30", robot.xiu_ren_download_task) diff --git a/plugins/game_task/config.toml b/plugins/game_task/config.toml index 2dcdb7d..5149baf 100644 --- a/plugins/game_task/config.toml +++ b/plugins/game_task/config.toml @@ -1,3 +1,4 @@ +[GameTask] enable = true command = ["game", "任务", "/t", "/a", "/s"] command-format = """ diff --git a/plugins/game_task/main.py b/plugins/game_task/main.py index 43344a5..8df44ac 100644 --- a/plugins/game_task/main.py +++ b/plugins/game_task/main.py @@ -74,14 +74,6 @@ class GameTaskPlugin(MessagePluginInterface): self.db_manager = DBConnectionManager.get_instance() self.encyclopedia_db = EncyclopediaDB(self.db_manager) - # 注册定时任务 - if self.event_system: - self.event_system.add_interval_job( - self.run_random_task_assignment, - hours=1, - id="game_task_random_assignment" - ) - self.LOG.info(f"[{self.name}] 插件初始化完成,指令:{self._commands}") return True