[feat] global scripts

This commit is contained in:
kwaroran
2023-05-25 21:52:38 +09:00
parent 4aef0363f4
commit f79d3c66e6
6 changed files with 56 additions and 5 deletions

View File

@@ -245,6 +245,12 @@ export function setDatabase(data:Database){
data: []
}]
}
if(checkNullish(data.loreBookPage) || data.loreBook.length < data.loreBookPage){
data.loreBookPage = 0
}
if(checkNullish(data.globalscript)){
data.globalscript = []
}
changeLanguage(data.language)
@@ -474,6 +480,8 @@ export interface Database{
token:string,
model:string
}
globalscript: customscript[]
}
interface hordeConfig{