summaryrefslogtreecommitdiff
path: root/src/commands/fun/quantumcoinflip.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/fun/quantumcoinflip.ts')
-rw-r--r--src/commands/fun/quantumcoinflip.ts31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/commands/fun/quantumcoinflip.ts b/src/commands/fun/quantumcoinflip.ts
new file mode 100644
index 0000000..3f2446d
--- /dev/null
+++ b/src/commands/fun/quantumcoinflip.ts
@@ -0,0 +1,31 @@
+import { Command, CommandoMessage } from 'discord.js-commando';
+import { MessageEmbed } from 'discord.js';
+const sides = [NaN, 0, null, undefined, ''];
+
+module.exports = class QuantumCoinFlipFun extends Command {
+ constructor(client) {
+ super(client, {
+ name: 'quantumcoinflip',
+ aliases: ['quantumflipcoin'],
+ group: 'fun',
+ memberName: 'quantumcoinflip',
+ description: 'Flip a quantum 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 s = sides[Math.floor(Math.random() * sides.length)]
+ let embed = new MessageEmbed()
+
+ .setAuthor('The quantum coin landed on', 'https://i.imgur.com/pr7JCce.png')
+ .setDescription('`' + s + '`');
+
+ msg.say(embed);
+ }
+}; \ No newline at end of file