mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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"]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user