mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add token counters for individual fields. Optimize total counter display
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
// statsHelper.js
|
||||
import { getRequestHeaders, callPopup, token, chat } from "../script.js";
|
||||
import { getRequestHeaders, callPopup, characters, this_chid } from "../script.js";
|
||||
import { humanizeGenTime } from "./RossAscends-mods.js";
|
||||
|
||||
let charStats = {};
|
||||
@ -304,4 +304,10 @@ async function statMesProcess(line, type, characters, this_chid, oldMesssage) {
|
||||
updateStats();
|
||||
}
|
||||
|
||||
jQuery(() => {
|
||||
$(".rm_stats_button").on('click', function () {
|
||||
characterStatsHandler(characters, this_chid);
|
||||
});
|
||||
})
|
||||
|
||||
export { userStatsHandler, characterStatsHandler, getStats, statMesProcess, charStats };
|
||||
|
Reference in New Issue
Block a user