mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
20 lines
550 B
JavaScript
20 lines
550 B
JavaScript
const Command = require('../../framework/Command');
|
|
const genders = ['boy', 'girl'];
|
|
|
|
module.exports = class OffspringCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'offspring',
|
|
aliases: ['sex'],
|
|
group: 'random-res',
|
|
description: 'Determines if your new child will be a boy or a girl.'
|
|
});
|
|
}
|
|
|
|
run(msg) {
|
|
const chance = Math.floor(Math.random() * 5500);
|
|
if (!chance) return msg.say('It\'s a... Wait, what is it?');
|
|
return msg.say(`It's a ${genders[Math.floor(Math.random() * genders.length)]}!`);
|
|
}
|
|
};
|