mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Revert "Fix face beauty scores being backwards"
This reverts commit d75b8b9b56.
This commit is contained in:
@@ -43,7 +43,7 @@ module.exports = class FaceCommand extends Command {
|
|||||||
emotions.slice(0).sort((a, b) => face.emotion[b] - face.emotion[a])[0]
|
emotions.slice(0).sort((a, b) => face.emotion[b] - face.emotion[a])[0]
|
||||||
)];
|
)];
|
||||||
const smile = face.smile.value > face.smile.threshold;
|
const smile = face.smile.value > face.smile.threshold;
|
||||||
const beautyScore = face.gender.value === 'Male' ? face.beauty.male_score : face.beauty.female_score;
|
const beautyScore = face.gender.value === 'Male' ? face.beauty.female_score : face.beauty.male_score;
|
||||||
return msg.reply(oneLine`
|
return msg.reply(oneLine`
|
||||||
I think this is a photo of a ${face.age.value} year old ${face.gender.value.toLowerCase()}.
|
I think this is a photo of a ${face.age.value} year old ${face.gender.value.toLowerCase()}.
|
||||||
${pronoun} appears to be ${emotion}, and is ${smile ? 'smiling' : 'not smiling'}. I give this
|
${pronoun} appears to be ${emotion}, and is ${smile ? 'smiling' : 'not smiling'}. I give this
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "116.3.1",
|
"version": "116.3.0",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user