mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
40 lines
1.2 KiB
JavaScript
40 lines
1.2 KiB
JavaScript
const Command = require('../../structures/Command');
|
|
const { stripIndent } = require('common-tags');
|
|
const answers = ['yes', 'no'];
|
|
|
|
module.exports = class CharlieCharlieCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'charlie-charlie',
|
|
aliases: ['charlie-charlie-challenge'],
|
|
group: 'random-res',
|
|
memberName: 'charlie-charlie',
|
|
description: 'Asks your question to Charlie.',
|
|
args: [
|
|
{
|
|
key: 'question',
|
|
prompt: 'What do you want to ask Charlie?',
|
|
type: 'string',
|
|
max: 1900
|
|
}
|
|
]
|
|
});
|
|
}
|
|
|
|
run(msg, { question }) {
|
|
const answer = answers[Math.floor(Math.random() * answers.length)];
|
|
return msg.say(stripIndent`
|
|
_${question}_
|
|
\`\`\`
|
|
${answer === 'no' ? '\\' : ' '} | ${answer === 'yes' ? '/' : ' '}
|
|
NO ${answer === 'no' ? '\\' : ' '} | ${answer === 'yes' ? '/' : ' '}YES
|
|
${answer === 'no' ? '\\' : ' '}|${answer === 'yes' ? '/' : ' '}
|
|
————————————————
|
|
${answer === 'yes' ? '/' : ' '}|${answer === 'no' ? '\\' : ' '}
|
|
YES${answer === 'yes' ? '/' : ' '} | ${answer === 'no' ? '\\' : ' '}NO
|
|
${answer === 'yes' ? '/' : ' '} | ${answer === 'no' ? '\\' : ' '}
|
|
\`\`\`
|
|
`);
|
|
}
|
|
};
|