v3.3 push 7 (added autoclose)

This commit is contained in:
DJj123dj
2023-03-19 12:29:24 +01:00
parent 1159af9fa9
commit 4dced819a3
21 changed files with 179 additions and 41 deletions
+8
View File
@@ -261,6 +261,14 @@ exports.checker = async () => {
createError("'"+path+"/closedCategory' | there is no closedCategory object!")
}
//autoclose
if (option.autoclose){
checkType(option.autoclose.enable,"boolean",path/"/autoclose/enable")
checkType(option.autoclose.inactiveHours,"number",path/"/autoclose/id")
}else{
createError("'"+path+"/autoclose' | there is no autoclose object!")
}
}else if (type == "website"){
//url
checkType(option.url,"string",path+"/url")