Add /sendas command

This commit is contained in:
SillyLossy
2023-05-18 18:49:49 +03:00
parent 1f07722025
commit 0d1f291003
4 changed files with 56 additions and 9 deletions

View File

@ -171,8 +171,8 @@ function setOpenAIMessages(chat) {
role = 'system';
}
// for groups - prepend a character's name
if (selected_group) {
// for groups or sendas command - prepend a character's name
if (selected_group || chat[j].force_avatar) {
content = `${chat[j].name}: ${content}`;
}