mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Angry swiping fix
This commit is contained in:
@ -127,7 +127,13 @@ async function moduleWorker() {
|
|||||||
const name = context.groupId ? currentLastMessage.name : context.name2;
|
const name = context.groupId ? currentLastMessage.name : context.name2;
|
||||||
const force = !!context.groupId;
|
const force = !!context.groupId;
|
||||||
const data = await apiResult.json();
|
const data = await apiResult.json();
|
||||||
const expression = data.classification[0].label;
|
let expression = data.classification[0].label;
|
||||||
|
|
||||||
|
// Character won't be angry on you for swiping
|
||||||
|
if (currentLastMessage.mes == '...' && expressionsList.includes('joy')) {
|
||||||
|
expression = 'joy';
|
||||||
|
}
|
||||||
|
|
||||||
setExpression(name, expression, force);
|
setExpression(name, expression, force);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user