From 8c435855e647ee7aef8578e253caf91fe44c67cc Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Thu, 16 Apr 2020 04:56:37 -0700 Subject: The Purification, v7.0.0 add: - aesthetic, oddcase, stretch, surreal - culturedtext - dogeify - howify - insult - lorem - spongebob Other Stuff: - many refactoring --- src/commands/fun/8ball.js | 38 ------------------------ src/commands/fun/8ball.ts | 37 +++++++++++++++++++++++ src/commands/fun/aesthetic.ts | 33 +++++++++++++++++++++ src/commands/fun/culturedtext.ts | 49 +++++++++++++++++++++++++++++++ src/commands/fun/dm.ts | 63 ++++++++++++++++++++++++++++++++++++++++ src/commands/fun/dogeify.ts | 34 ++++++++++++++++++++++ src/commands/fun/emoji.js | 24 --------------- src/commands/fun/emoji.ts | 24 +++++++++++++++ src/commands/fun/gay.js | 34 ---------------------- src/commands/fun/gay.ts | 35 ++++++++++++++++++++++ src/commands/fun/howify.ts | 32 ++++++++++++++++++++ src/commands/fun/insult.ts | 21 ++++++++++++++ src/commands/fun/lorem.ts | 30 +++++++++++++++++++ src/commands/fun/oddcase.ts | 32 ++++++++++++++++++++ src/commands/fun/quote.js | 40 ------------------------- src/commands/fun/quote.ts | 45 ++++++++++++++++++++++++++++ src/commands/fun/respect.js | 23 --------------- src/commands/fun/respect.ts | 23 +++++++++++++++ src/commands/fun/say.js | 31 -------------------- src/commands/fun/say.ts | 32 ++++++++++++++++++++ src/commands/fun/spongebob.ts | 35 ++++++++++++++++++++++ src/commands/fun/stretch.ts | 33 +++++++++++++++++++++ src/commands/fun/surreal.ts | 32 ++++++++++++++++++++ src/commands/fun/uwufy.ts | 15 ++++++---- 24 files changed, 600 insertions(+), 195 deletions(-) delete mode 100644 src/commands/fun/8ball.js create mode 100644 src/commands/fun/8ball.ts create mode 100644 src/commands/fun/aesthetic.ts create mode 100644 src/commands/fun/culturedtext.ts create mode 100644 src/commands/fun/dm.ts create mode 100644 src/commands/fun/dogeify.ts delete mode 100644 src/commands/fun/emoji.js create mode 100644 src/commands/fun/emoji.ts delete mode 100644 src/commands/fun/gay.js create mode 100644 src/commands/fun/gay.ts create mode 100644 src/commands/fun/howify.ts create mode 100644 src/commands/fun/insult.ts create mode 100644 src/commands/fun/lorem.ts create mode 100644 src/commands/fun/oddcase.ts delete mode 100644 src/commands/fun/quote.js create mode 100644 src/commands/fun/quote.ts delete mode 100644 src/commands/fun/respect.js create mode 100644 src/commands/fun/respect.ts delete mode 100644 src/commands/fun/say.js create mode 100644 src/commands/fun/say.ts create mode 100644 src/commands/fun/spongebob.ts create mode 100644 src/commands/fun/stretch.ts create mode 100644 src/commands/fun/surreal.ts (limited to 'src/commands/fun') diff --git a/src/commands/fun/8ball.js b/src/commands/fun/8ball.js deleted file mode 100644 index 6be4f01..0000000 --- a/src/commands/fun/8ball.js +++ /dev/null @@ -1,38 +0,0 @@ -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/8ball.ts b/src/commands/fun/8ball.ts new file mode 100644 index 0000000..faf7adf --- /dev/null +++ b/src/commands/fun/8ball.ts @@ -0,0 +1,37 @@ +import { Command, CommandoMessage } from 'discord.js-commando'; +import { MessageEmbed } from '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: CommandoMessage) { + 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/aesthetic.ts b/src/commands/fun/aesthetic.ts new file mode 100644 index 0000000..54bde0c --- /dev/null +++ b/src/commands/fun/aesthetic.ts @@ -0,0 +1,33 @@ +import { Command, CommandoMessage } from 'discord.js-commando'; +import ct from 'culturedtext'; +import emoji from 'emoji-random'; + +module.exports = class AestheticFun extends Command { + constructor(client) { + super(client, { + name: 'aesthetic', + aliases: ['aestheticifize'], + group: 'fun', + memberName: 'aesthetic', + description: 'Aestheticifizes anything you send.', + args: [ + { + key: 'userMsg', + prompt: 'What would you like to aestheticifize?', + type: 'string' + } + ], + examples: [ + 'uwu!aesthetic please aestheticifize this' + ], + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + }); + } + run(msg: CommandoMessage, { userMsg }) { + var m = userMsg; + var u1 = ct.aethstetic(m); + msg.reply(u1 + ' ' + emoji.random()); + msg.delete(); + } +}; \ No newline at end of file diff --git a/src/commands/fun/culturedtext.ts b/src/commands/fun/culturedtext.ts new file mode 100644 index 0000000..499b3e6 --- /dev/null +++ b/src/commands/fun/culturedtext.ts @@ -0,0 +1,49 @@ +import { Command, CommandoMessage } from 'discord.js-commando'; +import ct from 'culturedtext'; +import emoji from 'emoji-random'; + +module.exports = class CulturedTextFun extends Command { + constructor(client) { + super(client, { + name: 'culturedtext', + aliases: ['ct'], + group: 'fun', + memberName: 'culturedtext', + description: 'Cultured textifys anything you send.', + args: [ + { + key: 'userMsg', + prompt: 'What would you like to cultured textifys?', + type: 'string' + }, + { + key: 'ctType', + prompt: 'What type of cultured textification would you like to do? (oddcase, aesthetic, surreal or stretch)', + type: 'string' + } + + ], + examples: [ + 'uwu!culturedtext oddcase please cultured textify this' + ], + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + }); + } + run(msg: CommandoMessage, { userMsg, ctType }) { + var m = userMsg; + if (ctType == "oddcase" || ctType == 'o') { + var u1 = ct.oddcase(m + ' ' + emoji.random()); + } else if (ctType == 'aesthetic' || ctType == 'a') { + var u1 = ct.aethstetic(m + ' ' + emoji.random()); + } else if (ctType == 'surreal') { + var u1 = ct.surreal(m + ' ' + emoji.random()); + } else if (ctType == 'stretch') { + var u1 = ct.stretched(m + ' ' + emoji.random()); + } else { + msg.reply('That is not at option, please sellect a valid option.') + } + msg.reply(u1 + ' ' + emoji.random()); + msg.delete(); + } +}; \ No newline at end of file diff --git a/src/commands/fun/dm.ts b/src/commands/fun/dm.ts new file mode 100644 index 0000000..73fa0b6 --- /dev/null +++ b/src/commands/fun/dm.ts @@ -0,0 +1,63 @@ +// TODO: remove mention from final msg + +import { Command, CommandoMessage } from 'discord.js-commando'; +import { MessageEmbed } from 'discord.js'; + +module.exports = class DMFun extends Command { + constructor(client) { + super(client, { + name: 'dm', + aliases: [ + 'directmessage', + 'directmsg', + 'direct-message', + 'direct-msg' + ], + group: 'fun', + memberName: 'dm', + description: 'Allows you to DM somebody as the bot.', + guildOnly: true, + args: [ + { + key: 'msgContent', + prompt: 'What message would you like to send?', + type: 'string' + } + ], + examples: [ + 'uwu!dm @sin#1337 hi', + 'uwu!directmessage @sin#1337 hey', + 'uwu!directmsg @sin#1337 hello', + 'uwu!direct-message @sin#1337 yo', + 'uwu!direct-msg @sin#1337 aye', + ], + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'ADMINISTRATOR'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] + }); + } + run(msg: CommandoMessage, { msgContent }) { + if (msg.author.id == '217348698294714370') { + if (!msg.mentions.users.first() && msgContent) { + msg.reply('You haven\'t specified anyone to send a message to.'); + } else { + var sendTo = msg.mentions.users.first().id; + var d = new Date(msg.createdTimestamp); + + msg.guild.members.fetch(sendTo).then(messageUser => { + messageUser.send(msgContent); + + var emb = new MessageEmbed() + .setColor(0xFFCC4D) + .setTitle('uwufier - DM') + .addField('Message content', `${msgContent}`) + .addField('Recipient', `${msg.mentions.users.first()}`) + .addField('Sender', `${msg.author}`) + .addField('Time sent', `Now`) + msg.say(emb) + }); + } + } else { + msg.reply('Insufficent permissions.'); + } + } +}; \ No newline at end of file diff --git a/src/commands/fun/dogeify.ts b/src/commands/fun/dogeify.ts new file mode 100644 index 0000000..3ec79bc --- /dev/null +++ b/src/commands/fun/dogeify.ts @@ -0,0 +1,34 @@ +import { Command, CommandoMessage } from 'discord.js-commando'; +import doge from 'dogeify-js'; +import emoji from 'emoji-random'; + +module.exports = class DogeifyFun extends Command { + constructor(client) { + super(client, { + name: 'dogeify', + aliases: ['doge'], + group: 'fun', + memberName: 'dogeify', + description: 'Dogifys anything you send.', + args: [ + { + key: 'userMsg', + prompt: 'What would you like to dogeify?', + type: 'string' + } + ], + examples: [ + 'uwu!dogeify please dogify this', + 'uwu!doge can u do this as well' + ], + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + }); + } + async run(msg: CommandoMessage, { userMsg }) { + var m = userMsg; + var u1 = await doge(m); + msg.reply(u1 + ' ' emoji.random()); + msg.delete(); + } +}; \ No newline at end of file diff --git a/src/commands/fun/emoji.js b/src/commands/fun/emoji.js deleted file mode 100644 index ca633b9..0000000 --- a/src/commands/fun/emoji.js +++ /dev/null @@ -1,24 +0,0 @@ -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/emoji.ts b/src/commands/fun/emoji.ts new file mode 100644 index 0000000..2950738 --- /dev/null +++ b/src/commands/fun/emoji.ts @@ -0,0 +1,24 @@ +import emoji from 'emoji-random'; +import { Command, CommandoMessage } from '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: CommandoMessage) { + msg.reply(emoji.random()); + } +}; \ No newline at end of file diff --git a/src/commands/fun/gay.js b/src/commands/fun/gay.js deleted file mode 100644 index ec78ee3..0000000 --- a/src/commands/fun/gay.js +++ /dev/null @@ -1,34 +0,0 @@ -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/gay.ts b/src/commands/fun/gay.ts new file mode 100644 index 0000000..a522cf9 --- /dev/null +++ b/src/commands/fun/gay.ts @@ -0,0 +1,35 @@ +import { Command, CommandoMessage } from '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: CommandoMessage) { + var gayAmount = Math.floor((Math.random() * 100) + 1); + var gayAmountDecimal = Math.floor((Math.random() * 100) + 1); + + msg.reply('Scanning..').then(scanningMsg => { + // @ts-ignore + scanningMsg.delete() + msg.reply('Your gay-ness amount is **' + gayAmount + '.' + gayAmountDecimal + '%**. 🏳️‍🌈'); + }); + } +}; \ No newline at end of file diff --git a/src/commands/fun/howify.ts b/src/commands/fun/howify.ts new file mode 100644 index 0000000..e7e7eb6 --- /dev/null +++ b/src/commands/fun/howify.ts @@ -0,0 +1,32 @@ +import { Command, CommandoMessage } from 'discord.js-commando'; +import how from 'howifier'; +import emoji from 'emoji-random'; + +module.exports = class HowifyFun extends Command { + constructor(client) { + super(client, { + name: 'howify', + aliases: ['how'], + group: 'fun', + memberName: 'howify', + description: 'Howifies any image you send.', + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'EMBED_LINKS'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'EMBED_LINKS'], + examples: ['uwu!howify', 'uwu!how'] + }); + } + run(msg: CommandoMessage) { + if (msg.attachments.size) { + // fs.unlinkSync('../../../node_modules/howifier/images/blissgay.jpeg') + msg.attachments.forEach(async attachment => { + var u1 = await how(attachment.url); + setTimeout(() => { + msg.say({ files: [u1] }) + }, 2000); + }); + } else { + msg.reply('No image detected. ' + emoji.random()) + } + + } +}; \ No newline at end of file diff --git a/src/commands/fun/insult.ts b/src/commands/fun/insult.ts new file mode 100644 index 0000000..aec2219 --- /dev/null +++ b/src/commands/fun/insult.ts @@ -0,0 +1,21 @@ +import { Command, CommandoMessage } from 'discord.js-commando'; +import insult from 'insult'; +import emoji from 'emoji-random'; + +module.exports = class InsultFun extends Command { + constructor(client) { + super(client, { + name: 'insult', + aliases: ['insults'], + group: 'fun', + memberName: 'insult', + description: 'Gives you a random insult.', + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + examples: ['uwu!insult', 'uwu!insults'] + }); + } + run(msg: CommandoMessage) { + msg.reply(insult.Insult() + ' ' + emoji.random()) + } +}; \ No newline at end of file diff --git a/src/commands/fun/lorem.ts b/src/commands/fun/lorem.ts new file mode 100644 index 0000000..c1d0e0e --- /dev/null +++ b/src/commands/fun/lorem.ts @@ -0,0 +1,30 @@ +import { Command, CommandoMessage } from 'discord.js-commando'; +import lm from 'lorem-memesum'; +import emoji from 'emoji-random'; + +module.exports = class LoremFun extends Command { + constructor(client) { + super(client, { + name: 'lorem', + aliases: ['lorem-impsum', 'loremipsum', 'ipsum', 'lorem-memesum', 'loremmemesum', 'memesum'], + group: 'fun', + memberName: 'lorem', + description: 'Gives you a random memeified Lorem Ipsum', + examples: [ + 'uwu!lorem', + 'uwu!lorem-ipsum', + 'uwu!loremipsum', + 'uwu!ipsum', + 'uwu!lorem-memesum', + 'uwu!loremmemesum', + 'uwu!memesum' + ], + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + }); + } + run(msg: CommandoMessage) { + msg.reply(lm.sentence.randomSentence() + ' ' + emoji.random()); + msg.delete(); + } +}; \ No newline at end of file diff --git a/src/commands/fun/oddcase.ts b/src/commands/fun/oddcase.ts new file mode 100644 index 0000000..b574244 --- /dev/null +++ b/src/commands/fun/oddcase.ts @@ -0,0 +1,32 @@ +import { Command, CommandoMessage } from 'discord.js-commando'; +import ct from 'culturedtext'; +import emoji from 'emoji-random'; + +module.exports = class OddcaseFun extends Command { + constructor(client) { + super(client, { + name: 'oddcase', + group: 'fun', + memberName: 'oddcase', + description: 'Oddcases anything you send.', + args: [ + { + key: 'userMsg', + prompt: 'What would you like to oddcase?', + type: 'string' + } + ], + examples: [ + 'uwu!oddcase please oddcase this' + ], + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + }); + } + run(msg: CommandoMessage, { userMsg }) { + var m = userMsg; + var u1 = ct.oddcase(m); + msg.reply(u1 + ' ' + emoji.random()); + msg.delete(); + } +}; \ No newline at end of file diff --git a/src/commands/fun/quote.js b/src/commands/fun/quote.js deleted file mode 100644 index 4a19a31..0000000 --- a/src/commands/fun/quote.js +++ /dev/null @@ -1,40 +0,0 @@ -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/quote.ts b/src/commands/fun/quote.ts new file mode 100644 index 0000000..1e130a8 --- /dev/null +++ b/src/commands/fun/quote.ts @@ -0,0 +1,45 @@ +import atquotes from 'at-quotes'; +import { Command, CommandoMessage } from 'discord.js-commando'; +import emoji from '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: [ + 'uwu!quote', + 'uwu!qutoes', + 'uwu!quote finn', + 'uwu!quotes ice king' + ], + 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: CommandoMessage, { 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 deleted file mode 100644 index 50d185b..0000000 --- a/src/commands/fun/respect.js +++ /dev/null @@ -1,23 +0,0 @@ -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/respect.ts b/src/commands/fun/respect.ts new file mode 100644 index 0000000..863b9e7 --- /dev/null +++ b/src/commands/fun/respect.ts @@ -0,0 +1,23 @@ +import { Command, CommandoMessage } from '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: CommandoMessage) { + 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 deleted file mode 100644 index 667bb49..0000000 --- a/src/commands/fun/say.js +++ /dev/null @@ -1,31 +0,0 @@ -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/say.ts b/src/commands/fun/say.ts new file mode 100644 index 0000000..0d360bd --- /dev/null +++ b/src/commands/fun/say.ts @@ -0,0 +1,32 @@ +import { Command, CommandoMessage } from 'discord.js-commando'; +import emoji from 'emoji-random'; + +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: CommandoMessage, { say }) { + if (msg.member.hasPermission('KICK_MEMBERS')) { + msg.channel.send(say); + msg.delete(); + } else { + msg.reply('Insufficent permsissions. ' + emoji.random()); + } + } +}; \ No newline at end of file diff --git a/src/commands/fun/spongebob.ts b/src/commands/fun/spongebob.ts new file mode 100644 index 0000000..07c7d83 --- /dev/null +++ b/src/commands/fun/spongebob.ts @@ -0,0 +1,35 @@ +import { Command, CommandoMessage } from 'discord.js-commando'; +import sbm from 'spongibobu.js'; +import emoji from 'emoji-random'; + +module.exports = class SpongebobFun extends Command { + constructor(client) { + super(client, { + name: 'spongebob', + aliases: ['spongibobu', 'sbm'], + group: 'fun', + memberName: 'spongebob', + description: 'Spongebob memifys anything you send.', + args: [ + { + key: 'userMsg', + prompt: 'What would you like to spongebob memify?', + type: 'string' + } + ], + examples: [ + 'uwu!spongebob please spongebob memify this', + 'uwu!spongibobu sponge gang', + 'uwu!sbm oooh example' + ], + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + }); + } + run(msg: CommandoMessage, { userMsg }) { + var m = userMsg; + var u1 = sbm(m); + msg.reply(u1 + ' ' + emoji.random()); + msg.delete(); + } +}; \ No newline at end of file diff --git a/src/commands/fun/stretch.ts b/src/commands/fun/stretch.ts new file mode 100644 index 0000000..19d4bfa --- /dev/null +++ b/src/commands/fun/stretch.ts @@ -0,0 +1,33 @@ +import { Command, CommandoMessage } from 'discord.js-commando'; +import ct from 'culturedtext'; +import emoji from 'emoji-random'; + +module.exports = class StretchFun extends Command { + constructor(client) { + super(client, { + name: 'stretch', + aliases: ['stretched'], + group: 'fun', + memberName: 'stretch', + description: 'Stretches anything you send.', + args: [ + { + key: 'userMsg', + prompt: 'What would you like to stretch?', + type: 'string' + } + ], + examples: [ + 'uwu!stretch please stretch this' + ], + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + }); + } + run(msg: CommandoMessage, { userMsg }) { + var m = userMsg; + var u1 = ct.stretched(m); + msg.reply(u1 + ' ' + emoji.random()); + msg.delete(); + } +}; \ No newline at end of file diff --git a/src/commands/fun/surreal.ts b/src/commands/fun/surreal.ts new file mode 100644 index 0000000..37fe21a --- /dev/null +++ b/src/commands/fun/surreal.ts @@ -0,0 +1,32 @@ +import { Command, CommandoMessage } from 'discord.js-commando'; +import ct from 'culturedtext'; +import emoji from 'emoji-random'; + +module.exports = class SurrealFun extends Command { + constructor(client) { + super(client, { + name: 'surreal', + group: 'fun', + memberName: 'surreal', + description: 'Surrealifies anything you send.', + args: [ + { + key: 'userMsg', + prompt: 'What would you like to surrealify?', + type: 'string' + } + ], + examples: [ + 'uwu!surreal please surrealify this' + ], + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + }); + } + run(msg: CommandoMessage, { userMsg }) { + var m = userMsg; + var u1 = ct.surreal(m); + msg.reply(u1 + ' ' + emoji.random()); + msg.delete(); + } +}; \ No newline at end of file diff --git a/src/commands/fun/uwufy.ts b/src/commands/fun/uwufy.ts index 9e40078..db0f19b 100644 --- a/src/commands/fun/uwufy.ts +++ b/src/commands/fun/uwufy.ts @@ -1,5 +1,5 @@ -import { Message } from "discord.js"; -import { Command } from 'discord.js-commando'; +import { Command, CommandoMessage } from 'discord.js-commando'; +import emoji from 'emoji-random'; module.exports = class UwufyFun extends Command { constructor(client) { @@ -16,16 +16,21 @@ module.exports = class UwufyFun extends Command { type: 'string' } ], - examples: ['uwu!say please uwufy this'], + examples: [ + 'uwu!uwufy please uwufy this', + 'uwu!uwu can u uwufy this', + 'uwu!owofy this thx', + 'uwu!owo nice now this' + ], userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], }); } - run(msg: Message, { userMsg }) { + run(msg: CommandoMessage, { userMsg }) { var m = userMsg; var u1 = m.replace('r', 'w'); var u2 = u1.replace('l', 'w'); - msg.reply(u2); + msg.reply(u2 + ' ' + emoji.random()); msg.delete(); } }; \ No newline at end of file -- cgit v1.2.3