mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
20 lines
596 B
JavaScript
20 lines
596 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: '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}.`);
|
|
}
|
|
};
|