Files
xiao/commands/random-res/magic-conch.js
T
Daniel Odendahl Jr 7560246f26 Update to latest
2017-11-02 22:42:12 +00:00

31 lines
783 B
JavaScript

const { Command } = require('discord.js-commando');
const { stripIndents } = require('common-tags');
const answers = ['Maybe someday', 'Nothing', 'Neither', 'I don\'t think so', 'Yes', 'Try asking again'];
module.exports = class MagicConchCommand extends Command {
constructor(client) {
super(client, {
name: 'magic-conch',
aliases: ['magic-conch-shell'],
group: 'random-res',
memberName: 'magic-conch',
description: 'Asks your question to the Magic Conch.',
args: [
{
key: 'question',
prompt: 'What do you want to ask the magic conch?',
type: 'string',
max: 1950
}
]
});
}
run(msg, { question }) {
return msg.say(stripIndents`
${question}
🐚 ${answers[Math.floor(Math.random() * answers.length)]} 🐚
`);
}
};