Files
xiao/commands/response/quantumcoin.js
T
2017-04-25 02:37:14 +00:00

22 lines
633 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: 'quantumcoin',
aliases: [
'qcoin'
],
group: 'response',
memberName: 'quantumcoin',
description: 'Flips a coin that lands on nothing.'
});
}
run(message) {
const qcoin = sides[Math.floor(Math.random() * sides.length)];
return message.say(`It landed ${qcoin}.`);
}
};