mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-10 19:04:42 +02:00
Birthstone Command
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const { list } = require('../../util/Util');
|
||||
const months = require('../../assets/json/month');
|
||||
const stones = require('../../assets/json/birthstone');
|
||||
|
||||
module.exports = class BirthstoneCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'birthstone',
|
||||
group: 'analyze',
|
||||
memberName: 'birthstone',
|
||||
description: 'Responds with the Birthstone for a month.',
|
||||
args: [
|
||||
{
|
||||
key: 'month',
|
||||
prompt: 'What month would you like to get the Zodiac Sign for?',
|
||||
type: 'month'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
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}`);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user