Files
xiao/commands/random/quantum-coin.js
T
Dragon Fire d5aa3d4ab0 Fixes
2018-07-26 21:01:20 -04:00

19 lines
493 B
JavaScript

const Command = require('../../structures/Command');
const sides = ['NaN', '0', 'null', 'undefined', '\'\''];
module.exports = class QuantumCoinCommand extends Command {
constructor(client) {
super(client, {
name: 'quantum-coin',
aliases: ['q-coin'],
group: 'random',
memberName: 'quantum-coin',
description: 'Flips a coin that lands on some form of nothing.'
});
}
run(msg) {
return msg.say(`It landed on ${sides[Math.floor(Math.random() * sides.length)]}.`);
}
};