rip rip rip

This commit is contained in:
Elizabeth
2017-07-12 19:45:31 -05:00
parent afe98a18a4
commit 8d442a67e8
181 changed files with 0 additions and 21 deletions
+19
View File
@@ -0,0 +1,19 @@
const Command = require('../../structures/Command');
const sides = ['heads', 'tails'];
module.exports = class CoinFlipCommand extends Command {
constructor(client) {
super(client, {
name: 'coin',
aliases: ['coin-flip', 'flip'],
group: 'random-res',
memberName: 'coin',
description: 'Flips a coin.'
});
}
run(msg) {
const side = sides[Math.floor(Math.random() * sides.length)];
return msg.say(`It landed on ${side}!`);
}
};