summaryrefslogtreecommitdiff
path: root/src/commands/fun/coinflip.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/fun/coinflip.ts')
-rw-r--r--src/commands/fun/coinflip.ts31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/commands/fun/coinflip.ts b/src/commands/fun/coinflip.ts
deleted file mode 100644
index f491d93..0000000
--- a/src/commands/fun/coinflip.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import { Command, CommandoMessage } from 'discord.js-commando';
-import { MessageEmbed } from 'discord.js';
-
-module.exports = class CoinFlipFun extends Command {
- constructor(client) {
- super(client, {
- name: 'coinflip',
- aliases: ['flipcoin'],
- group: 'fun',
- memberName: 'coinflip',
- description: 'Flip a coin.',
- throttling: {
- usages: 5,
- duration: 30
- },
- examples: ['uwu!coinflip', 'uwu!flipcoin'],
- userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
- clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY']
- });
- }
- run(msg: CommandoMessage) {
- var r = ['heads!', 'tails!'];
- var s = r[Math.floor(Math.random() * r.length)];
- let embed = new MessageEmbed()
-
- .setAuthor('The coin landed on', 'https://i.imgur.com/pr7JCce.png')
- .setDescription('`' + s + '`');
-
- msg.say(embed);
- }
-}; \ No newline at end of file