mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +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]
|
||||
)];
|
||||
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`
|
||||
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
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "116.3.1",
|
||||
"version": "116.3.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user