mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
19 lines
519 B
JavaScript
19 lines
519 B
JavaScript
const Command = require('../../structures/Command');
|
|
const questions = require('../../assets/json/would-you-rather');
|
|
|
|
module.exports = class WouldYouRatherCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'would-you-rather',
|
|
aliases: ['wy-rather', 'wyr'],
|
|
group: 'random',
|
|
memberName: 'would-you-rather',
|
|
description: 'Responds with a random "Would you rather ...?" question.'
|
|
});
|
|
}
|
|
|
|
run(msg) {
|
|
return msg.say(questions[Math.floor(Math.random() * questions.length)]);
|
|
}
|
|
};
|