Add role parameter to risuChatParser function

This commit is contained in:
kwaroran
2024-03-07 00:16:40 +09:00
parent 3c39c8fa5d
commit 604ed57627

View File

@@ -537,7 +537,7 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
let index = 0
for(const msg of ms){
let formatedChat = await processScript(nowChatroom,risuChatParser(msg.data, {chara: currentChar, rmVar: true}), 'editprocess')
let formatedChat = await processScript(nowChatroom,risuChatParser(msg.data, {chara: currentChar, rmVar: true, role: msg.role}), 'editprocess')
let name = ''
if(msg.role === 'char'){
if(msg.saying){