Don't replace well-know substitution marcos with bias. Support macros in sys and sendas messages.

This commit is contained in:
Cohee
2023-06-09 02:50:35 +03:00
parent c4a2809849
commit 3f79a066f6
2 changed files with 13 additions and 5 deletions

View File

@ -11,6 +11,7 @@ import {
replaceBiasMarkup,
saveChatConditional,
sendSystemMessage,
substituteParams,
system_avatar,
system_message_types
} from "../script.js";
@ -143,7 +144,7 @@ async function sendMessageAs(_, text) {
is_name: true,
is_system: isSystem,
send_date: humanizedDateTime(),
mes: mesText,
mes: substituteParams(mesText),
force_avatar: force_avatar,
original_avatar: original_avatar,
extra: {
@ -174,7 +175,7 @@ async function sendNarratorMessage(_, text) {
is_name: false,
is_system: isSystem,
send_date: humanizedDateTime(),
mes: text.trim(),
mes: substituteParams(text.trim()),
force_avatar: system_avatar,
extra: {
type: system_message_types.NARRATOR,