aboutsummaryrefslogtreecommitdiff
path: root/modules/kind.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/kind.js')
-rw-r--r--modules/kind.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/kind.js b/modules/kind.js
new file mode 100644
index 0000000..205014e
--- /dev/null
+++ b/modules/kind.js
@@ -0,0 +1,24 @@
+const fs = require('fs');
+const db = JSON.parse(fs.readFileSync("./data/data.json").toString());
+
+const icons = require('./icons.js');
+
+module.exports = (pony) => {
+ sel = db[pony];
+ switch (d.kind) {
+ case "Pegasus":
+ return icons.kind.pegasus;
+
+ case "Earth":
+ return icons.kind.earth;
+
+ case "Unicorn":
+ return icons.kind.unicorn;
+
+ case "Alicorn":
+ return icons.kind.alicorn;
+
+ default:
+ return icons.kind.other;
+ }
+} \ No newline at end of file