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: # 普通任务
132
132
- on_user_info # 定时任务也可以被挂载哟~
133
133
``````
134
134
135
- 将其命名为` <脚本名字>.yaml ` ,并且放到` config/hooks/scripts ` 文件夹或子文件夹中
135
+ 将其命名为` <脚本名字>.yaml ` ,并且放到` config/hooks/scripts ` 文件夹或子文件夹中( ` scripts ` 文件夹中以 ` _ ` 结尾的子文件夹会被忽略)
136
136
137
137
### 其他指令
138
138
Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ def list_all_files(root_dir) -> list[str]:
274
274
for file in os .listdir (root_dir ):
275
275
file_path = os .path .join (root_dir , file )
276
276
277
- if os .path .isdir (file_path ):
277
+ if os .path .isdir (file_path ) and not file_path . endswith ( '_' ) :
278
278
# 遍历子文件夹
279
279
_files_in_a_folder .extend (list_all_files (file_path ))
280
280
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 5
5
6
6
def debug (msg : str , server : PluginServerInterface ):
7
7
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