Fix "india male" in face

This commit is contained in:
Dragon Fire
2019-06-05 21:26:45 -04:00
parent 5f86d41eea
commit 35948f7c93
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -42,8 +42,9 @@ module.exports = class FaceCommand extends Command {
)];
const smile = face.smile.value > face.smile.threshold;
const beautyScore = face.gender.value === 'Male' ? face.beauty.female_score : face.beauty.male_score;
const ethnicity = face.ethnicity.value.toLowerCase();
return msg.reply(oneLine`
I think this is a photo of a ${face.age.value} year old ${face.ethnicity.value.toLowerCase()}
I think this is a photo of a ${face.age.value} year old ${ethnicity === 'india' ? 'indian' : ethnicity}
${face.gender.value.toLowerCase()}. ${pronoun} appears to be ${emotion}, and is
${smile ? 'smiling' : 'not smiling'}. I give this face a ${Math.round(beautyScore)} on the 1-100 beauty scale.
${beautyScore > 50 ? beautyScore > 70 ? beautyScore > 90 ? 'Hot!' : 'Not bad.' : 'Not _too_ ugly.' : 'Uggggly!'}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "105.3.0",
"version": "105.3.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {