Angry swiping fix

This commit is contained in:
SillyLossy
2023-04-16 02:39:48 +03:00
parent 9db4766bfa
commit 62929301fa

View File

@ -127,7 +127,13 @@ async function moduleWorker() {
const name = context.groupId ? currentLastMessage.name : context.name2;
const force = !!context.groupId;
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);
}