mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
19 lines
540 B
JavaScript
19 lines
540 B
JavaScript
const { Command } = require('discord.js-commando');
|
|
const genders = ['boy', 'girl'];
|
|
|
|
module.exports = class OffspringCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'offspring',
|
|
group: 'response',
|
|
memberName: 'offspring',
|
|
description: 'Tells you if your new child is a boy or a girl.'
|
|
});
|
|
}
|
|
|
|
run(message) {
|
|
const gender = genders[Math.floor(Math.random() * genders.length)];
|
|
return message.say(`It's a ${gender}!`);
|
|
}
|
|
};
|