diff options
Diffstat (limited to 'src/commands/fun')
| -rw-r--r-- | src/commands/fun/8ball.js | 38 | ||||
| -rw-r--r-- | src/commands/fun/emoji.js | 24 | ||||
| -rw-r--r-- | src/commands/fun/gay.js | 34 | ||||
| -rw-r--r-- | src/commands/fun/quote.js | 40 | ||||
| -rw-r--r-- | src/commands/fun/respect.js | 23 | ||||
| -rw-r--r-- | src/commands/fun/say.js | 31 | ||||
| -rw-r--r-- | src/commands/fun/uwufy.ts | 31 |
7 files changed, 221 insertions, 0 deletions
diff --git a/src/commands/fun/8ball.js b/src/commands/fun/8ball.js new file mode 100644 index 0000000..6be4f01 --- /dev/null +++ b/src/commands/fun/8ball.js @@ -0,0 +1,38 @@ +const { Command } = require('discord.js-commando'); +const { MessageEmbed } = require('discord.js'); + +module.exports = class EightBallFun extends Command { + constructor(client) { + super(client, { + name: '8ball', + aliases: [ + '8b', + '9b', + '9ball', + '7b', + '7ball' + ], + group: 'fun', + memberName: '8ball', + description: 'Shake the 8ball for a fortune.', + throttling: { + usages: 5, + duration: 30 + }, + examples: ['uwu!8ball', 'uwu!8b'], + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] + }); + } + run(msg) { + var r = ['Yes~ uwu', 'No.', 'Yes!', 'No!', 'What, no.', 'Yes.', 'Maybe.', 'Perhaps.', 'Try again.', 'I\'m not sure.']; + var s = r[Math.floor(Math.random() * r.length)]; + + let embed = new MessageEmbed() + + .setAuthor('The 8-ball says', 'https://upload.wikimedia.org/wikipedia/commons/thumb/f/fd/8-Ball_Pool.svg/500px-8-Ball_Pool.svg.png') + .setDescription('`' + s + '`'); + + msg.channel.send(embed); + } +};
\ No newline at end of file diff --git a/src/commands/fun/emoji.js b/src/commands/fun/emoji.js new file mode 100644 index 0000000..ca633b9 --- /dev/null +++ b/src/commands/fun/emoji.js @@ -0,0 +1,24 @@ +const emoji = require('emoji-random'); +const { Command } = require('discord.js-commando'); + +module.exports = class EmojiFun extends Command { + constructor(client) { + super(client, { + name: 'emoji', + aliases: ['moji'], + group: 'fun', + memberName: 'emoji', + description: 'Gives you a random emoji.' + emoji.random(), + throttling: { + usages: 5, + duration: 30 + }, + examples: ['uwu!emoji', 'uwu!moji'], + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] + }); + } + run(msg) { + msg.reply(emoji.random()); + } +};
\ No newline at end of file diff --git a/src/commands/fun/gay.js b/src/commands/fun/gay.js new file mode 100644 index 0000000..ec78ee3 --- /dev/null +++ b/src/commands/fun/gay.js @@ -0,0 +1,34 @@ +const { Command } = require('discord.js-commando'); + +module.exports = class GayFun extends Command { + constructor(client) { + super(client, { + name: 'gay', + aliases: [ + 'gayamount', + 'gayrange', + 'gayrate' + ], + group: 'fun', + memberName: 'gay', + description: 'Tells you your gay-ness amount.', + examples: [ + 'uwu!gay', + 'uwu!gayamount', + 'uwu!gayrange', + 'uwu!gayrate' + ], + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] + }); + } + run(msg) { + var gayAmount = Math.floor((Math.random() * 100) + 1); + var gayAmountDecimal = Math.floor((Math.random() * 100) + 1); + + msg.reply('Scanning..').then(scanningMsg => { + scanningMsg.delete() + msg.reply('Your gay-ness amount is **' + gayAmount + '.' + gayAmountDecimal + '%**. 🏳️🌈'); + }); + } +};
\ No newline at end of file diff --git a/src/commands/fun/quote.js b/src/commands/fun/quote.js new file mode 100644 index 0000000..4a19a31 --- /dev/null +++ b/src/commands/fun/quote.js @@ -0,0 +1,40 @@ +const atquotes = require('at-quotes'); +const { Command } = require('discord.js-commando'); +const emoji = require('emoji-random'); + +module.exports = class QuoteFun extends Command { + constructor(client) { + super(client, { + name: 'quote', + aliases: ['quotes'], + group: 'fun', + memberName: 'quote', + description: 'Gives you a random quote from Adventure Time.', + throttling: { + usages: 5, + duration: 30 + }, + examples: ['s5n!quote', 's5n!quote finn'], + args: [ + { + key: 'atCharacter', + prompt: 'Would you like a specific character? (Finn, Jake, Ice King, No)', + type: 'string' + } + ], + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] + }); + } + run(msg, { atCharacter }) { + if (!atCharacter || atCharacter == 'no' || atCharacter == 'n') { + msg.reply(atquotes.getQuote() + ' ' + emoji.random()); + } else if (atCharacter == 'finn' || atCharacter == 'f') { + msg.reply(atquotes.getFinnQuote() + ' ' + emoji.random()); + } else if (atCharacter == 'jake' || atCharacter == 'j') { + msg.reply(atquotes.getJakeQuote() + ' ' + emoji.random()); + } else if (atCharacter == 'ice king' || atCharacter == 'ik') { + msg.reply(atquotes.getIceKingQuote() + ' ' + emoji.random()); + } + } +};
\ No newline at end of file diff --git a/src/commands/fun/respect.js b/src/commands/fun/respect.js new file mode 100644 index 0000000..50d185b --- /dev/null +++ b/src/commands/fun/respect.js @@ -0,0 +1,23 @@ +const { Command } = require('discord.js-commando'); + +module.exports = class RespectFun extends Command { + constructor(client) { + super(client, { + name: 'respect', + aliases: ['f'], + group: 'fun', + memberName: 'respect', + description: 'Press F to pay respects.', + examples: ['uwu!respect', 'uwu!f'], + guildOnly: true, + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] + }); + } + run(msg) { + msg.channel.send('Press F to pay respects.').then(m => { + m.react('🇫'); + msg.delete(); + }); + } +};
\ No newline at end of file diff --git a/src/commands/fun/say.js b/src/commands/fun/say.js new file mode 100644 index 0000000..667bb49 --- /dev/null +++ b/src/commands/fun/say.js @@ -0,0 +1,31 @@ +const { Command } = require('discord.js-commando'); + +module.exports = class SayFun extends Command { + constructor(client) { + super(client, { + name: 'say', + group: 'fun', + memberName: 'say', + description: 'Allows you to speak as the bot.', + guildOnly: true, + args: [ + { + key: 'say', + prompt: 'What would you like to send?', + type: 'string' + } + ], + examples: ['uwu!say hi'], + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] + }); + } + run(msg, { say }) { + if (msg.member.hasPermission('KICK_MEMBERS')) { + msg.channel.send(say); + msg.delete(); + } else { + msg.reply('Insufficent perms. ' + emoji.random()); + } + } +};
\ No newline at end of file diff --git a/src/commands/fun/uwufy.ts b/src/commands/fun/uwufy.ts new file mode 100644 index 0000000..9e40078 --- /dev/null +++ b/src/commands/fun/uwufy.ts @@ -0,0 +1,31 @@ +import { Message } from "discord.js"; +import { Command } from 'discord.js-commando'; + +module.exports = class UwufyFun extends Command { + constructor(client) { + super(client, { + name: 'uwufy', + aliases: ['uwu', 'owofy', 'owo'], + group: 'fun', + memberName: 'uwufy', + description: 'Uwufys anything you send.', + args: [ + { + key: 'userMsg', + prompt: 'What would you like to uwufy?', + type: 'string' + } + ], + examples: ['uwu!say please uwufy this'], + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + }); + } + run(msg: Message, { userMsg }) { + var m = userMsg; + var u1 = m.replace('r', 'w'); + var u2 = u1.replace('l', 'w'); + msg.reply(u2); + msg.delete(); + } +};
\ No newline at end of file |