Fix narrator message type error

This commit is contained in:
SillyLossy
2023-05-17 14:25:17 +03:00
parent 2254bb2c7d
commit 3eb2835460
2 changed files with 5 additions and 3 deletions

View File

@ -275,6 +275,7 @@ const system_message_types = {
GENERIC: "generic", GENERIC: "generic",
BOOKMARK_CREATED: "bookmark_created", BOOKMARK_CREATED: "bookmark_created",
BOOKMARK_BACK: "bookmark_back", BOOKMARK_BACK: "bookmark_back",
NARRATOR: "narrator",
}; };
const extension_prompt_types = { const extension_prompt_types = {

View File

@ -87,7 +87,6 @@ function sendNarratorMessage(_, text) {
} }
const message = { const message = {
extra: {},
name: 'Narrator', name: 'Narrator',
is_user: false, is_user: false,
is_name: false, is_name: false,
@ -95,9 +94,11 @@ function sendNarratorMessage(_, text) {
send_date: humanizedDateTime(), send_date: humanizedDateTime(),
mes: text.trim(), mes: text.trim(),
force_avatar: system_avatar, force_avatar: system_avatar,
type extra: {
type: system_message_types.NARRATOR,
},
}; };
chat.push(message); chat.push(message);
addOneMessage(message); addOneMessage(message);
} }