File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ tasks: # 普通任务
132132 - on_user_info # 定时任务也可以被挂载哟~
133133``````
134134
135- 将其命名为` <脚本名字>.yaml ` ,并且放到` config/hooks/scripts ` 文件夹或子文件夹中
135+ 将其命名为` <脚本名字>.yaml ` ,并且放到` config/hooks/scripts ` 文件夹或子文件夹中( ` scripts ` 文件夹中以 ` _ ` 结尾的子文件夹会被忽略)
136136
137137### 其他指令
138138
Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ def list_all_files(root_dir) -> list[str]:
274274 for file in os .listdir (root_dir ):
275275 file_path = os .path .join (root_dir , file )
276276
277- if os .path .isdir (file_path ):
277+ if os .path .isdir (file_path ) and not file_path . endswith ( '_' ) :
278278 # 遍历子文件夹
279279 _files_in_a_folder .extend (list_all_files (file_path ))
280280 if os .path .isfile (file_path ) and (file_path .endswith ('.yaml' ) or file_path .endswith ('.yml' )):
Original file line number Diff line number Diff line change 55
66def debug (msg : str , server : PluginServerInterface ):
77 if cfg .config .debug :
8- server .logger .info ('debug: ' + msg )
8+ server .logger .info ('[ debug] ' + msg )
You can’t perform that action at this time.
0 commit comments