[fix] lore activation without first key

This commit is contained in:
kwaroran
2023-05-12 22:20:57 +09:00
parent 23fe3ae484
commit 3e34c17f3b
4 changed files with 14 additions and 12 deletions

View File

@@ -102,15 +102,16 @@ export async function loadLoreBookPrompt(){
}
}
if(firstKeyActivation && lore.secondKey.length === 0){
activatiedPrompt.push(lore.content)
continue
}
for(const key of lore.secondKey){
if(formatedChat.includes(key)){
if(firstKeyActivation){
if(lore.secondKey.length === 0){
activatiedPrompt.push(lore.content)
break
continue
}
for(const key of lore.secondKey){
if(formatedChat.includes(key)){
activatiedPrompt.push(lore.content)
break
}
}
}
}