From 604ed576279798799b522d382047d0538fd82ac0 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Thu, 7 Mar 2024 00:16:40 +0900 Subject: [PATCH] Add role parameter to risuChatParser function --- src/ts/process/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/process/index.ts b/src/ts/process/index.ts index 04f12ec2..7d46ce71 100644 --- a/src/ts/process/index.ts +++ b/src/ts/process/index.ts @@ -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){