Add trigger effects and conditions

This commit is contained in:
kwaroran
2024-04-10 10:19:10 +09:00
parent 1a2da8224e
commit 1a750dc6c6
4 changed files with 141 additions and 60 deletions

View File

@@ -552,6 +552,10 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
currentChat = triggerResult.chat
ms = currentChat.message
currentTokens += triggerResult.tokens
if(triggerResult.stopSending){
doingChat.set(false)
return false
}
}
let index = 0