mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
18 lines
453 B
JavaScript
18 lines
453 B
JavaScript
const Command = require('../../framework/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-res',
|
|
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)]}.`);
|
|
}
|
|
};
|