This commit is contained in:
Dragon Fire
2020-04-12 09:27:37 -04:00
parent ca65c960da
commit c5273883c8
2 changed files with 8 additions and 8 deletions
+6 -6
View File
@@ -7,7 +7,7 @@
},
{
"primary": "Aquamarine",
"alternative": ["Bloodstone"]
"alternate": ["Bloodstone"]
},
{
"primary": "Diamond"
@@ -17,28 +17,28 @@
},
{
"primary": "Pearl",
"alternative": ["Moonstone", "Alexandrite"]
"alternate": ["Moonstone", "Alexandrite"]
},
{
"primary": "Ruby"
},
{
"primary": "Peridot",
"alternative": ["Spinel"]
"alternate": ["Spinel"]
},
{
"primary": "Sapphire"
},
{
"primary": "Opal",
"alternative": ["Tourmaline"]
"alternate": ["Tourmaline"]
},
{
"primary": "Topaz",
"alternative": ["Citrine"]
"alternate": ["Citrine"]
},
{
"primary": "Turquoise",
"alternative": ["Zircon", "Tanzanite"]
"alternate": ["Zircon", "Tanzanite"]
}
]
+2 -2
View File
@@ -1,5 +1,5 @@
const Command = require('../../structures/Command');
const { list } = require('../../util/Util');
const { list, firstUpperCase } = require('../../util/Util');
const months = require('../../assets/json/month');
const stones = require('../../assets/json/birthstone');
@@ -23,6 +23,6 @@ module.exports = class BirthstoneCommand extends Command {
run(msg, { month }) {
const stone = stones[month - 1];
const alternate = stone.alternate ? ` Alternatively, you can also use ${list(stone.alternate, 'or')}.` : '';
return msg.say(`The Birthstone for ${months[month - 1]} is ${stone.primary}.${alternate}`);
return msg.say(`The Birthstone for ${firstUpperCase(months[month - 1])} is ${stone.primary}.${alternate}`);
}
};