Files
xiao/commands/random-res/quantum-coin.js
T
2017-09-29 00:49:17 +00:00

19 lines
509 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: ['q-coin'],
group: 'random-res',
memberName: 'quantum-coin',
description: 'Flips a coin that lands on some form of nothing.'
});
}
run(msg) {
return msg.say(`It landed ${sides[Math.floor(Math.random() * sides.length)]}.`);
}
};