需求:1.加入了用户积分表;2.加入了指令积分扣除功能;3.加入了积分获得与扣除注解。
This commit is contained in:
3
main.py
3
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)
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
[GameTask]
|
||||
enable = true
|
||||
command = ["game", "任务", "/t", "/a", "/s"]
|
||||
command-format = """
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user