mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix typos
This commit is contained in:
@@ -264,9 +264,9 @@ function countWords(str) {
|
||||
* @param {string} type - The type of the message processing (e.g., 'append', 'continue', 'appendFinal', 'swipe').
|
||||
* @param {Object} characters - Object containing character data.
|
||||
* @param {string} this_chid - The character id.
|
||||
* @param {string} oldMesssage - The old message that's being processed.
|
||||
* @param {string} oldMessage - The old message that's being processed.
|
||||
*/
|
||||
async function statMesProcess(line, type, characters, this_chid, oldMesssage) {
|
||||
async function statMesProcess(line, type, characters, this_chid, oldMessage) {
|
||||
if (this_chid === undefined || characters[this_chid] === undefined) {
|
||||
return;
|
||||
}
|
||||
@@ -295,7 +295,7 @@ async function statMesProcess(line, type, characters, this_chid, oldMesssage) {
|
||||
stat.user_msg_count++;
|
||||
stat.user_word_count += countWords(line.mes);
|
||||
} else {
|
||||
let oldLen = oldMesssage.split(' ').length;
|
||||
let oldLen = oldMessage.split(' ').length;
|
||||
stat.user_word_count += countWords(line.mes) - oldLen;
|
||||
}
|
||||
} else {
|
||||
@@ -305,7 +305,7 @@ async function statMesProcess(line, type, characters, this_chid, oldMesssage) {
|
||||
stat.non_user_msg_count++;
|
||||
stat.non_user_word_count += countWords(line.mes);
|
||||
} else {
|
||||
let oldLen = oldMesssage.split(' ').length;
|
||||
let oldLen = oldMessage.split(' ').length;
|
||||
stat.non_user_word_count += countWords(line.mes) - oldLen;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user