diff options
author | Minteck <contact@minteck.org> | 2022-01-14 14:37:21 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-01-14 14:37:21 +0100 |
commit | 81884db115f3f6a5d4e968fb77cc050cadb1a05e (patch) | |
tree | 040d5448c46a432facef26d4f9f9fc2823090466 /modules/generation.js | |
parent | 541633055c76a0c002fb8509f106f4b449e21207 (diff) | |
download | ponyfind-81884db115f3f6a5d4e968fb77cc050cadb1a05e.tar.gz ponyfind-81884db115f3f6a5d4e968fb77cc050cadb1a05e.tar.bz2 ponyfind-81884db115f3f6a5d4e968fb77cc050cadb1a05e.zip |
v8
Diffstat (limited to 'modules/generation.js')
-rw-r--r-- | modules/generation.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/generation.js b/modules/generation.js new file mode 100644 index 0000000..afb044d --- /dev/null +++ b/modules/generation.js @@ -0,0 +1,18 @@ +const fs = require('fs'); +const db = JSON.parse(fs.readFileSync("./data/data.json").toString()); + +const icons = require('./icons.js'); + +module.exports = (pony, uid, gid) => { + sel = db[pony]; + switch (d.generation) { + case 4: + return icons.generations.g4 + " " + l("Friendship is Magic", "Les amies c'est magique", uid, gid); + + case 5: + return icons.generations.g5 + " " + l("A New Generation", "Nouvelle Génération", uid, gid); + + default: + return icons.generations.other + " " + l("Other/Unknown", "Autre/inconnu", uid, gid); + } +}
\ No newline at end of file |