Files
xiao/commands/response/quantumcoin.js
T
Daniel Odendahl Jr 52e299b1b4 Auto-Aliases
2017-05-07 17:34:59 +00:00

22 lines
625 B
JavaScript

const { Command } = require('discord.js-commando');
const sides = ['on nothing', 'on NaN', 'on 0', 'in the air', 'on null'];
module.exports = class QuantumCoinCommand extends Command {
constructor(client) {
super(client, {
name: 'quantum-coin',
aliases: [
'qcoin'
],
group: 'response',
memberName: 'quantum-coin',
description: 'Flips a coin that lands on nothing.'
});
}
run(msg) {
const side = sides[Math.floor(Math.random() * sides.length)];
return msg.say(`It landed ${side}.`);
}
};