diff options
author | Minteck <contact@minteck.org> | 2022-01-15 13:58:13 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-01-15 13:58:13 +0100 |
commit | d12826dda31ab9585adc15adbf76706f1d5cbed2 (patch) | |
tree | ed2573f8e7cb0a0ebca595fb5ed147b0dcc50187 /modules/embed.js | |
parent | 0087e3a858065440b040db4386a611fb77a26dd8 (diff) | |
download | ponyfind-d12826dda31ab9585adc15adbf76706f1d5cbed2.tar.gz ponyfind-d12826dda31ab9585adc15adbf76706f1d5cbed2.tar.bz2 ponyfind-d12826dda31ab9585adc15adbf76706f1d5cbed2.zip |
Update
Diffstat (limited to 'modules/embed.js')
-rw-r--r-- | modules/embed.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/embed.js b/modules/embed.js index b3b1a79..e64cdfc 100644 --- a/modules/embed.js +++ b/modules/embed.js @@ -3,6 +3,7 @@ const fs = require('fs'); const data = require('../data/data.json'); const getKindIcon = require("./kind"); +const getGeneration = require("./generation"); const cuties = fs.readFileSync("./config/cuties.txt").toString(); module.exports = (page, id, gid, isPublic, user) => { @@ -187,13 +188,13 @@ module.exports = (page, id, gid, isPublic, user) => { { name: l("Nicknames", "Surnoms", id, gid), value: naming, inline: true }, { name: l("Sex", "Sexe", id, gid), value: d.sex === "F" ? "♀ " + l("Female", "Fille", id, gid) : "♂ " + l("Male", "Garçon", id, gid), inline: true }, { name: l("Kind", "Type", id, gid), value: getKindIcon(page) + " " + kind, inline: true }, - { name: l("Generation", "Génération", id, gid), value: getGeneration(page, id, gid) + " " + kind, inline: true }, + { name: l("Generation", "Génération", id, gid), value: getGeneration(page, id, gid), inline: true }, ]; if (spoils[id] === 1 && !isPublic) { fields.push( - { name: l("Occupation(s)", "Occupation(s)", id, gid), value: "(" + l("spoilers", "révélations", id, gid) + ")\n||" + jobs + "||", inline: true }, - { name: l("Home(s)", "Résidence(s)", id, gid), value: "(" + l("spoilers", "révélations", id, gid) + ")\n||" + location + "||", inline: true } + { name: l("Occupation(s)", "Occupation(s)", id, gid), value: "(" + l("spoilers", "révélations", id, gid) + ")\n||" + jobs + "||", inline: false }, + { name: l("Home(s)", "Résidence(s)", id, gid), value: "(" + l("spoilers", "révélations", id, gid) + ")\n||" + location + "||", inline: false } ) } else if (spoils[id] === 2 && !isPublic) { fields.push( |