diff options
| author | 8cy <[email protected]> | 2020-07-23 23:24:17 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-07-23 23:24:17 -0700 |
| commit | bb511abc03bb66848947e37a999502b813c77269 (patch) | |
| tree | 612c010fc8317e1cdf11471a18aad0270819d33e /src/commands/fun | |
| parent | fix: if clear amount equal or over 100, round down to 99 (diff) | |
| download | dep-core-bb511abc03bb66848947e37a999502b813c77269.tar.xz dep-core-bb511abc03bb66848947e37a999502b813c77269.zip | |
goodbye old uwufier :cry:
Diffstat (limited to 'src/commands/fun')
50 files changed, 0 insertions, 1992 deletions
diff --git a/src/commands/fun/8ball.ts b/src/commands/fun/8ball.ts deleted file mode 100644 index 989e036..0000000 --- a/src/commands/fun/8ball.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import { MessageEmbed } from 'discord.js'; -import emoji from 'emoji-random' - -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 002'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - args: [ - { - key: 'bType', - prompt: 'What type of 8ball would you like?', - type: 'string', - default: '' - } - ] - }); - } - run(msg: CommandoMessage, { bType }) { - if (bType == 'darling' || bType == '002' || bType == 'zero two' || bType == 'zero-two') { - var r = [ - 'Maybe, darling.', - 'Certainly not, darling.', - 'I hope so, darling.', - 'Not in our wildest dreams, darling.', - 'There is a good chance, darling.', - 'Quite likely, darling.', - 'I think so, darling.', - 'I hope not, darling.', - 'I hope so, darling.', - 'Never!', - 'Ahaha! Really?!? XD', - 'Hell, yes.', - 'Hell to the no.', - 'The future is bleak, darling', - 'The future is uncertain, darling', - 'I would rather not say, darling', - 'Who cares?', - 'Possibly, darling', - 'Never, ever, ever... ever.', - 'There is a small chance, darling.', - 'Yes, darling!' - ] - } else if (bType) { - msg.reply('Arguments? Try `uwu!8ball 002`. ' + emoji.random()) - var r = ['yes~ uwu', 'no.', 'yes!', 'no!', 'what, no.', 'yes.', 'maybe.', 'perhaps.', 'try again.', 'I\'m not sure.']; - } else { - 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.say(embed); - } -};
\ No newline at end of file diff --git a/src/commands/fun/advice.ts b/src/commands/fun/advice.ts deleted file mode 100644 index 49e011c..0000000 --- a/src/commands/fun/advice.ts +++ /dev/null @@ -1,27 +0,0 @@ -import axios from 'axios' -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; - -module.exports = class AdviceFun extends Command { - constructor(client) { - super(client, { - name: 'advice', - group: 'fun', - memberName: 'advice', - description: 'Gives you a random piece of advice.', - throttling: { - usages: 5, - duration: 30 - }, - examples: [ - 'uwu!advice' - ], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] - }); - } - async run(msg: CommandoMessage) { - let res = await axios.get('http://api.adviceslip.com/advice') - msg.reply(res.data.slip.advice + ' ' + emoji.random()) - } -};
\ No newline at end of file diff --git a/src/commands/fun/aesthetic.ts b/src/commands/fun/aesthetic.ts deleted file mode 100644 index a565d84..0000000 --- a/src/commands/fun/aesthetic.ts +++ /dev/null @@ -1,37 +0,0 @@ -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: 'Aestheticifies anything you send.', - args: [ - { - key: 'userMsg', - prompt: 'What would you like to aestheticifie?', - type: 'string' - } - ], - examples: [ - 'uwu!aesthetic please aestheticifie this' - ], - throttling: { - usages: 5, - duration: 30 - }, - 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/clapify.ts b/src/commands/fun/clapify.ts deleted file mode 100644 index f05c768..0000000 --- a/src/commands/fun/clapify.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; - -module.exports = class ClapFun extends Command { - constructor(client) { - super(client, { - name: 'clapify', - aliases: ['clap', 'clappify'], - group: 'fun', - memberName: 'clapify', - description: 'Allows you to clapify anything.', - args: [ - { - key: 'say', - prompt: 'What would you like to clapify?', - type: 'string' - } - ], - examples: ['uwu!clapify please clap this lol'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] - }); - } - run(msg: CommandoMessage, { say }) { - msg.say(say.split(' ').join('๐')) - msg.delete() - } -};
\ No newline at end of file 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 diff --git a/src/commands/fun/culturedtext.ts b/src/commands/fun/culturedtext.ts deleted file mode 100644 index 48b3fb8..0000000 --- a/src/commands/fun/culturedtext.ts +++ /dev/null @@ -1,53 +0,0 @@ -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' - ], - throttling: { - usages: 5, - duration: 30 - }, - 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/datefact.ts b/src/commands/fun/datefact.ts deleted file mode 100644 index 378aa52..0000000 --- a/src/commands/fun/datefact.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import axios from 'axios' -import emoji from 'emoji-random' - -module.exports = class DateFactFun extends Command { - constructor(client) { - super(client, { - name: 'datefact', - aliases: [ - 'date-fact', - 'datefacts', - 'date-facts' - ], - group: 'fun', - memberName: 'datefact', - description: 'Grabs facts about a specified date.', - args: [ - { - key: 'day', - prompt: 'What day would you like to get facts for?', - type: 'integer', - max: 31, - min: 1, - default: 'random' - }, - { - key: 'month', - prompt: 'What month would you like to get facts for?', - type: 'integer', - max: 12, - min: 1, - default: 'random' - } - ], - examples: ['uwu!datefact', 'uwu!datefact 12'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] - }); - } - async run(msg: CommandoMessage, { day, month }) { - const uri = `http://numbersapi.com/${month === 'random' || day === 'random' ? 'random' : `${month}/${day}`}/date` - const fact = await axios.get(uri).catch(err => { - console.log(err) - msg.reply('Woops, here was an error with the (http://numbersapi.com) API. ' + emoji.random()) - }) - msg.reply(fact.data) - } -};
\ No newline at end of file diff --git a/src/commands/fun/dayfact.ts b/src/commands/fun/dayfact.ts deleted file mode 100644 index f30b828..0000000 --- a/src/commands/fun/dayfact.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import axios from 'axios' -import emoji from 'emoji-random' - -module.exports = class DayFactFun extends Command { - constructor(client) { - super(client, { - name: 'dayfact', - aliases: [ - 'day-fact', - 'dayfacts', - 'day-facts' - ], - group: 'fun', - memberName: 'dayfact', - description: 'Grabs facts about a specified day.', - args: [ - { - key: 'day', - prompt: 'What day would you like to get facts for?', - type: 'integer', - max: 31, - min: 1, - default: 'random' - } - ], - examples: ['uwu!dayfact', 'uwu!dayfact 12'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] - }); - } - async run(msg: CommandoMessage, { day }) { - const fact = await axios.get(`http://numbersapi.com/${day}/date`).catch(err => { - console.log(err) - msg.reply('Woops, here was an error with the (http://numbersapi.com) API. ' + emoji.random()) - }) - msg.reply(fact.data) - } -};
\ No newline at end of file diff --git a/src/commands/fun/dicksize.ts b/src/commands/fun/dicksize.ts deleted file mode 100644 index 13986f1..0000000 --- a/src/commands/fun/dicksize.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; - -module.exports = class DickSizeFun extends Command { - constructor(client) { - super(client, { - name: 'dicksize', - aliases: [ - 'peepeesize', - 'ppsize' - ], - group: 'fun', - memberName: 'dicksize', - description: 'Tells you your dick size.', - examples: [ - 'uwu!dicksize', - 'uwu!peepeesize', - 'uwu!ppsize' - ], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] - }); - } - run(msg: CommandoMessage) { - let size = msg.author.id.slice(-3) % 20 + 1 - - msg.reply('Scanning..').then(scanningMsg => { - // @ts-ignore - scanningMsg.delete() - msg.reply('Your dick size is **' + size + '** inches. ' + emoji.random()); - }); - } -}; */
\ No newline at end of file diff --git a/src/commands/fun/dogeify.ts b/src/commands/fun/dogeify.ts deleted file mode 100644 index a5af4a2..0000000 --- a/src/commands/fun/dogeify.ts +++ /dev/null @@ -1,38 +0,0 @@ -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' - } - ], - throttling: { - usages: 5, - duration: 30 - }, - 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/drawcards.ts b/src/commands/fun/drawcards.ts deleted file mode 100644 index 5d53b72..0000000 --- a/src/commands/fun/drawcards.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import { shuffle } from '../../utils/Util.js' -const suits = ['โฃ', 'โฅ', 'โฆ', 'โ '] -const faces = ['Jack', 'Queen', 'King'] - -module.exports = class DrawCardsFun extends Command { - constructor(client) { - super(client, { - name: 'drawcards', - aliases: [ - 'draw-cards', - 'drawhand', - 'draw-hand' - ], - group: 'fun', - memberName: 'drawcards', - description: 'Draw a hand of playing cards.', - examples: ['uwu!drawcards 5'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - args: [ - { - key: 'aAmount', - label: 'hand size', - prompt: 'How many cards would you like to draw?', - type: 'integer', - max: 10, - min: 1 - }, - { - key: 'aJokers', - prompt: 'Do you want to include jokers in the draw?', - type: 'boolean', - default: false - } - ], - }); - this.deck = null - } - run(msg: CommandoMessage, { aAmount, aJokers }) { - if (!this.deck) this.deck = this.generateDeck() - let cards = this.deck - if (!aJokers) cards = cards.filter(card => !card.includes('Joker')) - return msg.reply(`${aAmount === 1 ? '' : '\n'}${shuffle(cards).slice(0, aAmount).join('\n')}`) - } - generateDeck() { - const deck = [] - for (const suit of suits) { - deck.push(`${suit} Ace`) - for (let i = 2; i <= 10; i++) deck.push(`${suit} ${i}`) - for (const face of faces) deck.push(`${suit} ${face}`) - } - deck.push('โญ Joker') - deck.push('โญ Joker') - return deck - } -};
\ No newline at end of file diff --git a/src/commands/fun/embed.ts b/src/commands/fun/embed.ts deleted file mode 100644 index fb59845..0000000 --- a/src/commands/fun/embed.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; -import { MessageEmbed } from 'discord.js'; - -module.exports = class EmbedFun extends Command { - constructor(client) { - super(client, { - name: 'embed', - group: 'fun', - memberName: 'embed', - description: 'Allows you to speak as the bot, except with embeds.', - args: [ - { - key: 'say', - prompt: 'What would you like to embed?', - type: 'string' - } - ], - examples: ['uwu!embed hi'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] - }); - } - run(msg: CommandoMessage, { say }) { - let emb = new MessageEmbed() - .setColor(0xFFCC4D) - .setDescription(say) - msg.say(emb) - msg.delete(); - } -};
\ No newline at end of file diff --git a/src/commands/fun/emoji.ts b/src/commands/fun/emoji.ts deleted file mode 100644 index f830387..0000000 --- a/src/commands/fun/emoji.ts +++ /dev/null @@ -1,24 +0,0 @@ -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/fml.ts b/src/commands/fun/fml.ts deleted file mode 100644 index a3fa600..0000000 --- a/src/commands/fun/fml.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import request from 'node-superfetch' -import emoji from 'emoji-random' -import cheerio from 'cheerio' - -module.exports = class FMLFun extends Command { - constructor(client) { - super(client, { - name: 'fml', - aliases: [ - 'fuckmylife', - 'fuck-my-life' - ], - group: 'fun', - memberName: 'fml', - description: 'Gives you a random FML.', - examples: ['uwu!fml'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - }); - } - async run(msg: CommandoMessage) { - try { - const { text } = await request.get('http://www.fmylife.com/random') - const $ = cheerio.load(text, { normalizeWhitespace: true }) - const fml = $('a.article-link').first().text().trim() - return msg.reply(fml + ' ' + emoji.random()) - } catch (err) { - return msg.reply(`Woops, an error has occured: \`${err.message}\`. Try again later! ${emoji.random()}`) - } - } -};
\ No newline at end of file diff --git a/src/commands/fun/gay.ts b/src/commands/fun/gay.ts deleted file mode 100644 index a70dfc3..0000000 --- a/src/commands/fun/gay.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* 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 level of homosexuality amount. Because we\'re all queens here.๐ณ๏ธโ๐ ', - examples: [ - 'uwu!gay', - 'uwu!gayamount', - 'uwu!gayrange', - 'uwu!gayrate' - ], - throttling: { - usages: 5, - duration: 30 - }, - 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/githubzen.ts b/src/commands/fun/githubzen.ts deleted file mode 100644 index cc2f0a2..0000000 --- a/src/commands/fun/githubzen.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import request from 'node-superfetch' -import emoji from 'emoji-random' -import cheerio from 'cheerio' - -module.exports = class GitHubZenFun extends Command { - constructor(client) { - super(client, { - name: 'githubzen', - aliases: [ - 'github-zen', - 'ghzen', - 'gh-zen' - ], - group: 'fun', - memberName: 'githubzen', - description: 'Gives you a random GitHub design philosophy.', - examples: ['uwu!githubzen'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - }); - } - async run(msg: CommandoMessage) { - try { - const { text } = await request.get('https://api.github.com/zen') - return msg.reply(text + ' ' + emoji.random()) - } catch (err) { - return msg.reply(`Woops, an error has occured: \`${err.message}\`. Try again later! ${emoji.random()}`) - } - } -};
\ No newline at end of file diff --git a/src/commands/fun/hello.ts b/src/commands/fun/hello.ts deleted file mode 100644 index e555a30..0000000 --- a/src/commands/fun/hello.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; - -module.exports = class HelloFun extends Command { - constructor(client) { - super(client, { - name: 'hello', - aliases: ['hey', 'hi'], - group: 'fun', - memberName: 'hello', - description: 'Say hello to uwufier!', - examples: ['uwu!hello', 'uwu!hey', 'uwu!hi'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - }); - } - run(msg: CommandoMessage) { - msg.reply('Hi! ' + emoji.random()) - } -};
\ No newline at end of file diff --git a/src/commands/fun/howify.ts b/src/commands/fun/howify.ts deleted file mode 100644 index c1337f9..0000000 --- a/src/commands/fun/howify.ts +++ /dev/null @@ -1,39 +0,0 @@ -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'], - throttling: { - usages: 5, - duration: 30 - }, - guildOnly: true - }); - } - 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); - msg.delete() - msg.reply('Please wait...').then(m => m.delete({ timeout: 2000 })) - 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 deleted file mode 100644 index 47643e7..0000000 --- a/src/commands/fun/insult.ts +++ /dev/null @@ -1,25 +0,0 @@ -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', 'roast', 'roasts'], - group: 'fun', - memberName: 'insult', - description: 'Gives you a random insult.', - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - 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/iq.ts b/src/commands/fun/iq.ts deleted file mode 100644 index 2185878..0000000 --- a/src/commands/fun/iq.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; -import { MersenneTwister19937, integer } from 'random-js' - -module.exports = class IQFun extends Command { - constructor(client) { - super(client, { - name: 'iq', - group: 'fun', - memberName: 'iq', - description: 'Tells you your IQ.', - examples: ['uwu!iq'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - args: [ - { - key: 'uUser', - prompt: 'Which user\'s IQ would you like to guess?', - type: 'user', - default: '' - } - ] - }); - } - run(msg: CommandoMessage, { uUser }) { - let random = MersenneTwister19937.seed(uUser.id) - let iq = integer(20, 270)(random) - if (!uUser) { - msg.reply('Scanning..').then(scanningMsg => { - // @ts-ignore - scanningMsg.delete() - msg.reply(`Your IQ score is **${iq}**. ${emoji.random()}`); - }); - } else { - if (uUser.id === this.client.user.id) { - msg.reply('Me? My IQ is too high for you to even comprehend. ' + emoji.random()) - } else { - msg.reply(`${uUser.username}'s IQ score is **${iq}**. ${emoji.random()}`) - } - } - } -};
\ No newline at end of file diff --git a/src/commands/fun/kissmarrykill.ts b/src/commands/fun/kissmarrykill.ts deleted file mode 100644 index 1a7622d..0000000 --- a/src/commands/fun/kissmarrykill.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import { shuffle } from '../../utils/Util.js' -import emoji from 'emoji-random' - -module.exports = class KissMarryKillFun extends Command { - constructor(client) { - super(client, { - name: 'kissmarrykill', - aliases: [ - 'kisskillmarry', - 'kiss-kill-marry', - 'killkissmarry', - 'kill-kiss-marry', - 'killmarrykiss', - 'kill-marry-kiss', - 'marrykisskill', - 'marry-kiss-kill', - 'marrykillkiss', - 'marry-kill-kiss', - 'fuck-marry-kill', - 'fuckmarrykill', - 'fuck-kill-marry', - 'fuckkillmarry', - 'kill-fuck-marry', - 'killfuckmarry', - 'kill-marry-fuck', - 'killmarryfuck', - 'marry-fuck-kill', - 'marryfuckkill', - 'marry-kill-fuck', - 'marrykillfuck', - 'kiss-mary-kill' - ], - group: 'fun', - memberName: 'kissmarrykill', - description: 'Kiss Marry Kill.', - examples: ['uwu!kissmarrykill'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - args: [ - { - key: 'first', - label: 'first name', - prompt: 'Who is the first person you choose?', - type: 'string', - max: 500 - }, - { - key: 'second', - label: 'second name', - prompt: 'Who is the second person you choose?', - type: 'string', - max: 500 - }, - { - key: 'third', - label: 'third name', - prompt: 'Who is the third person you choose?', - type: 'string', - max: 500 - } - ] - }); - } - async run(msg: CommandoMessage, { first, second, third }) { - const kissFuck = msg.channel.nsfw ? 'fuck' : 'kiss'; - const things = shuffle([first, second, third]); - return msg.say(`I'd ${kissFuck} ${things[0]}, marry ${things[1]}, and kill ${things[2]}. ${emoji.random()}`); - } -};
\ No newline at end of file diff --git a/src/commands/fun/lorem.ts b/src/commands/fun/lorem.ts deleted file mode 100644 index 3189375..0000000 --- a/src/commands/fun/lorem.ts +++ /dev/null @@ -1,34 +0,0 @@ -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' - ], - throttling: { - usages: 5, - duration: 30 - }, - 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/modplz.ts b/src/commands/fun/modplz.ts deleted file mode 100644 index 14f9955..0000000 --- a/src/commands/fun/modplz.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando'; -import { MessageEmbed } from 'discord.js'; - -module.exports = class ModPlzFun extends Command { - constructor(client: CommandoClient) { - super(client, { - name: 'modplz', - group: 'fun', - memberName: 'modplz', - description: 'Send this when someone talking about mods.', - examples: [ - 'uwu!modplz' - ], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - }); - } - run(msg: CommandoMessage) { - msg.delete() - let emb = new MessageEmbed() - .setColor(0xFFD0DF) - .setImage('https://discordapp.com/channels/663964105983393793/664659637039005696/730279064132255794') - return msg.say(emb) - } -};
\ No newline at end of file diff --git a/src/commands/fun/motivate.ts b/src/commands/fun/motivate.ts deleted file mode 100644 index 3dcd7f6..0000000 --- a/src/commands/fun/motivate.ts +++ /dev/null @@ -1,29 +0,0 @@ -import mq from 'motivations'; -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; - -module.exports = class MotivateFun extends Command { - constructor(client) { - super(client, { - name: 'motivate', - aliases: ['motivateme', 'motivation'], - group: 'fun', - memberName: 'motivate', - description: 'Gives you a random motivating quote from Star Wars.', - throttling: { - usages: 5, - duration: 30 - }, - examples: [ - 'uwu!motivate', - 'uwu!motivateme' - ], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] - }); - } - run(msg: CommandoMessage) { - var quoteNum = Math.floor((Math.random() * 62) + 1); - msg.reply(mq[quoteNum] + ' ' + emoji.random()) - } -};
\ No newline at end of file diff --git a/src/commands/fun/numberfact.ts b/src/commands/fun/numberfact.ts deleted file mode 100644 index 9e7b698..0000000 --- a/src/commands/fun/numberfact.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import axios from 'axios' -import emoji from 'emoji-random' - -module.exports = class NumberFactFun extends Command { - constructor(client) { - super(client, { - name: 'numberfact', - aliases: [ - 'number-fact', - 'numberfacts', - 'number-facts', - 'numfact', - 'num-fact', - 'numfacts', - 'num-facts' - ], - group: 'fun', - memberName: 'numberfact', - description: 'Grabs facts about a specified number.', - args: [ - { - key: 'nNum', - prompt: 'What number would you like to get facts for?', - type: 'integer', - max: 31, - min: 1, - default: 'random' - } - ], - examples: ['uwu!numberfact', 'uwu!numberfact 12'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] - }); - } - async run(msg: CommandoMessage, { nNum }) { - const fact = await axios.get(`http://numbersapi.com/${nNum}`).catch(err => { - console.log(err) - msg.reply('Woops, here was an error with the (http://numbersapi.com) API. ' + emoji.random()) - }) - msg.reply(fact.data) - } -};
\ No newline at end of file diff --git a/src/commands/fun/oddcase.ts b/src/commands/fun/oddcase.ts deleted file mode 100644 index 890773d..0000000 --- a/src/commands/fun/oddcase.ts +++ /dev/null @@ -1,36 +0,0 @@ -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' - ], - throttling: { - usages: 5, - duration: 30 - }, - 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/offspring.ts b/src/commands/fun/offspring.ts deleted file mode 100644 index e603f76..0000000 --- a/src/commands/fun/offspring.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random' -const genders = ['boy', 'girl'] - -module.exports = class OffspringFun extends Command { - constructor(client) { - super(client, { - name: 'offspring', - aliases: ['gender'], - group: 'fun', - memberName: 'offspring', - description: 'Determines your future child\'s gender.', - examples: ['uwu!offspring'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - }); - } - run(msg: CommandoMessage) { - msg.reply(`It\'s a ${genders[Math.floor(Math.random() * genders.length)]}! ${emoji.random()}`) - } -};
\ No newline at end of file diff --git a/src/commands/fun/onion.ts b/src/commands/fun/onion.ts deleted file mode 100644 index 341b461..0000000 --- a/src/commands/fun/onion.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random' -import { stripIndents } from 'common-tags' -import RSS from 'rss-parser' - -module.exports = class OnionFun extends Command { - constructor(client) { - super(client, { - name: 'onion', - aliases: ['theonion', 'the-onion'], - group: 'fun', - memberName: 'onion', - description: 'Reples with a random Onion article.', - examples: ['uwu!onion'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - }); - } - async run(msg: CommandoMessage) { - const parser = new RSS() - try { - const feed = await parser.parseURL('https://www.theonion.com/rss') - const article = feed.items[Math.floor(Math.random() * feed.items?.length)] - return msg.reply(stripIndents` - ${article.title} - ${article.link} - `) - } catch (err) { - return msg.reply(`Woops, an error has occurred: \`${err.message}\`. Try again later! ${emoji.random()}`); - } - } -};
\ No newline at end of file diff --git a/src/commands/fun/opinion.ts b/src/commands/fun/opinion.ts deleted file mode 100644 index 353846f..0000000 --- a/src/commands/fun/opinion.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random' -import { stripIndents } from 'common-tags' -const opinions = ['๐', '๐'] - -module.exports = class OpinionFun extends Command { - constructor(client) { - super(client, { - name: 'opinion', - group: 'fun', - memberName: 'opinion', - description: 'Determines uwufier\'s opinion of a specified thing.', - examples: ['uwu!opinion'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - args: [ - { - key: 'qQuestion', - prompt: 'What do you want to get an opinion on?', - type: 'string', - max: 1950 - } - ] - }); - } - run(msg: CommandoMessage, { qQuestion }) { - msg.reply(stripIndents` - ${qQuestion} - ${opinions[Math.floor(Math.random() * opinions.length)]} - `) - } -};
\ No newline at end of file diff --git a/src/commands/fun/quantumcoinflip.ts b/src/commands/fun/quantumcoinflip.ts deleted file mode 100644 index 3f2446d..0000000 --- a/src/commands/fun/quantumcoinflip.ts +++ /dev/null @@ -1,31 +0,0 @@ -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 diff --git a/src/commands/fun/quote.ts b/src/commands/fun/quote.ts deleted file mode 100644 index e090574..0000000 --- a/src/commands/fun/quote.ts +++ /dev/null @@ -1,80 +0,0 @@ -// Quote Packages -import mq from 'popular-movie-quotes'; -import hsq from 'harvey-specter-quotes' -import aq from 'animequote' -import cq from 'chewbacca-quotes' -import asq from 'arnie-quote' -import ztq from 'zero-two-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: 'Either gives you a random quote or a quote from a specified category.', - throttling: { - usages: 5, - duration: 30 - }, - examples: [ - 'uwu!quote', - 'uwu!qutoes', - 'uwu!quote movie', - 'uwu!quotes harvey specter' - ], - args: [ - { - key: 'atCharacter', - prompt: 'Would you like a specific type?\nTypes: movie, harvey specter, anime, chewbacca, arnold schwarzenegger or zero two.', - type: 'string' - } - ], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] - }); - } - run(msg: CommandoMessage, { atCharacter }) { - if (atCharacter == 'random' || atCharacter == 'no') { - var quoteNum = Math.floor((Math.random() * 6) + 1); - switch (quoteNum) { - case 1: - msg.reply(mq.getRandomQuote() + ' ' + emoji.random()); - break - case 2: - msg.reply(hsq.random() + ' ' + emoji.random()); - break - case 3: - msg.reply(aq().quotesentence + ' ' + emoji.random()); - break - case 4: - msg.reply(cq() + ' ' + emoji.random()) - break - case 5: - msg.reply(asq() + ' ' + emoji.random()) - break - case 6: - msg.reply(ztq() + ' ' + emoji.random()) - break - } - } else if (atCharacter == 'movie' || atCharacter == 'movies') { - msg.reply(mq.getRandomQuote() + ' ' + emoji.random()); - } else if (atCharacter == 'harvey specter' || atCharacter == 'harvey') { - msg.reply(hsq.random() + ' ' + emoji.random()); - } else if (atCharacter == 'anime' || atCharacter == 'animes') { - msg.reply(aq().quotesentence + ' ' + emoji.random()); - } else if (atCharacter == 'chewbacca') { - msg.reply(cq() + ' ' + emoji.random()) - } else if (atCharacter == 'arnold schwarzenegger' || atCharacter == 'arnold' || atCharacter == 'schwarzenegger') { - msg.reply(asq() + ' ' + emoji.random()) - } else if (atCharacter == 'zero two' || atCharacter == 'ditf' || atCharacter == '002' || atCharacter == 'darling in the franxx') { - msg.reply(ztq() + ' ' + emoji.random()) - } else { - msg.reply('That was not at option. ' + emoji.random()) - } - } -};
\ No newline at end of file diff --git a/src/commands/fun/randomfacts.ts b/src/commands/fun/randomfacts.ts deleted file mode 100644 index 5d9777e..0000000 --- a/src/commands/fun/randomfacts.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import request from 'node-superfetch' -import emoji from 'emoji-random' - -module.exports = class RandomFactFun extends Command { - constructor(client) { - super(client, { - name: 'randomfact', - aliases: [ - 'random-fact', - 'fact', - 'facts' - ], - group: 'fun', - memberName: 'randomfact', - description: 'Gives you a random fact.', - examples: ['uwu!randomfact'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - }); - } - async run(msg: CommandoMessage) { - try { - const article = await this.randomWikipediaArticle() - const { body } = await request - .get('https://en.wikipedia.org/w/api.php') - .query({ - action: 'query', - prop: 'extracts', - format: 'json', - titles: article, - exintro: '', - explaintext: '', - redirects: '', - formatversion: 2 - }) - let fact = body.query.pages[0].extract; - if (fact.length > 200) { - const facts = fact.split('.'); - fact = `${facts[0]}.`; - if (fact.length < 200 && facts.length > 1) fact += `${facts[1]}.`; - } - return msg.reply(fact + ' ' + emoji.random()); - } catch (err) { - return msg.reply(`Woops, an error has occured: \`${err.message}\`. Try again later! ${emoji.random()}`) - } - } - async randomWikipediaArticle() { - const { body } = await request - .get('https://en.wikipedia.org/w/api.php') - .query({ - action: 'query', - list: 'random', - rnnamespace: 0, - rnlimit: 1, - format: 'json', - formatversion: 2 - }); - if (!body.query.random[0].title) return 'Facts are hard to find sometimes.'; - return body.query.random[0].title; - } -};
\ No newline at end of file diff --git a/src/commands/fun/rate.ts b/src/commands/fun/rate.ts deleted file mode 100644 index 0dfc505..0000000 --- a/src/commands/fun/rate.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random' - -module.exports = class RateFun extends Command { - constructor(client) { - super(client, { - name: 'rate', - group: 'fun', - memberName: 'rate', - description: 'Rate something.', - examples: ['uwu!rate deez nuts'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - args: [ - { - key: 'tThing', - prompt: 'What would you like to rate?', - type: 'string', - max: 1950 - } - ] - }); - } - run(msg: CommandoMessage, { tThing }) { - msg.reply(`I'd give ${tThing} a ${Math.floor(Math.random() * 10) + 1}/10! ${emoji.random()}`) - } -};
\ No newline at end of file diff --git a/src/commands/fun/respect.ts b/src/commands/fun/respect.ts deleted file mode 100644 index 362773a..0000000 --- a/src/commands/fun/respect.ts +++ /dev/null @@ -1,26 +0,0 @@ -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'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] - }); - } - run(msg: CommandoMessage) { - msg.say('Press F to pay respects.').then(m => { - m.react('๐ซ'); - msg.delete(); - }); - } -};
\ No newline at end of file diff --git a/src/commands/fun/roastwilly.ts b/src/commands/fun/roastwilly.ts deleted file mode 100644 index 24503cd..0000000 --- a/src/commands/fun/roastwilly.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import insult from 'insult'; -import emoji from 'emoji-random'; - -module.exports = class RoastWillyFun extends Command { - constructor(client) { - super(client, { - name: 'roastwilly', - aliases: ['insultwilly'], - group: 'fun', - memberName: 'roastwilly', - description: 'Gives you a random insult directed towards willy.', - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - examples: ['uwu!insultwilly', 'uwu!roastwilly'], - args: [ - { - key: 'type', - prompt: 'None', - type: 'string', - default: '' - } - ] - }); - } - run(msg: CommandoMessage, { type }: any) { - const willysRoasts = ['you smell like weenie water', 'you are dead built like a german sausage', 'you are that one flavour of ice cream no one eats']; - const roastCustomBool = Math.floor(Math.random() * 3); - if (type == 'custom' || type == 'c') { - const customRoastNum = Math.floor(Math.random() * willysRoasts.length); - msg.reply(`${willysRoasts[customRoastNum]} <@${msg.guild.member('608481389444333583')?.id}> ${emoji.random()}`) - } else { - if (roastCustomBool == 1) { - const customRoastNum = Math.floor(Math.random() * willysRoasts.length); - msg.reply(`${willysRoasts[customRoastNum]} <@${msg.guild.member('608481389444333583')?.id}> ${emoji.random()}`) - } else { - msg.reply(`${insult.Insult()} <@${msg.guild.member('608481389444333583')?.id}> ${emoji.random()}`) - } - } - } -};
\ No newline at end of file diff --git a/src/commands/fun/roastwillyc.ts b/src/commands/fun/roastwillyc.ts deleted file mode 100644 index 2bb4ee2..0000000 --- a/src/commands/fun/roastwillyc.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import insult from 'insult'; -import emoji from 'emoji-random'; - -module.exports = class RoastWillyCustomFun extends Command { - constructor(client) { - super(client, { - name: 'roastwillyc', - aliases: ['insultwillyc'], - group: 'fun', - memberName: 'roastwillyc', - description: 'Gives you a random custom insult directed towards willy.', - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - examples: ['uwu!insultwillyc', 'uwu!roastwillyc'], - args: [ - { - key: 'type', - prompt: 'None', - type: 'string', - default: '' - } - ] - }); - } - run(msg: CommandoMessage, { type }: any) { - const willysRoasts = ['you smell like weenie water', 'you are dead built like a german sausage', 'you are that one flavour of ice cream no one eats']; - const roastCustomBool = Math.floor(Math.random() * 3); - const customRoastNum = Math.floor(Math.random() * willysRoasts.length); - msg.reply(`${willysRoasts[customRoastNum]} <@${msg.guild.member('608481389444333583')?.id}> ${emoji.random()}`) - } -};
\ No newline at end of file diff --git a/src/commands/fun/rockpaperscissors.ts b/src/commands/fun/rockpaperscissors.ts deleted file mode 100644 index 422481f..0000000 --- a/src/commands/fun/rockpaperscissors.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import { MessageEmbed } from 'discord.js'; - -module.exports = class RockPaperScissorsFun extends Command { - constructor(client) { - super(client, { - name: 'rockpaperscissors', - aliases: ['rps'], - group: 'fun', - memberName: 'rockpaperscissors', - description: '**[Disabled]** Play Rock, Paper Scissors.', - throttling: { - usages: 5, - duration: 30 - }, - examples: ['uwu!rockpaperscissors', 'uwu!rps'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] - }); - } - async run(msg: CommandoMessage) { - // TODO: fix this - msg.reply('Command disabled.') - - // const rock = '๐' - // const paper = '๐งป' - // const scissors = 'โ๏ธ' - - // let embed = new MessageEmbed() - // .setAuthor(msg.author.tag, msg.author.displayAvatarURL()) - // .setDescription('What would you like to choose?') - // .setColor(0xFFCC4D) - // .setTimestamp() - - // const m = await msg.channel.send(embed) - - // const react1 = await m.react(rock) - // const react2 = await m.react(paper) - // const react3 = await m.react(scissors) - - // const chooseArr = [rock, paper, scissors] - - // const randChoice = await chooseArr[Math.floor(Math.random() * chooseArr.length)] - - // let collector = await m.createReactionCollector((reacted, user) => user.id === msg.author.id) - - // collector.on('collect', async (reaction, user) => { - // let winEmb = new MessageEmbed() - // .setAuthor(msg.author.tag, msg.author.displayAvatarURL()) - // .setDescription('You won!') - // .addField('Results:', `${reaction.emoji} vs ${randChoice}`) - // .setColor('GREEN') - // .setTimestamp() - - // let tieEmb = new MessageEmbed() - // .setAuthor(msg.author.tag, msg.author.displayAvatarURL()) - // .setDescription('You tied!') - // .addField('Results:', `${reaction.emoji} vs ${randChoice}`) - // .setColor(0xFFCC4D) - // .setTimestamp() - - // let lostEmb = new MessageEmbed() - // .setAuthor(msg.author.tag, msg.author.displayAvatarURL()) - // .setDescription('You lost!') - // .addField('Results:', `${reaction.emoji} vs ${randChoice}`) - // .setColor('RED') - // .setTimestamp() - // if ((reaction.emoji === rock && randChoice === scissors) || (reaction.emoji === paper && randChoice === rock) || (reaction.emoji === scissors && randChoice === paper)) { - // m.delete() - // msg.channel.send(winEmb) - // } else if (reaction.emoji === randChoice) { - // m.delete() - // msg.channel.send(tieEmb) - // } else { - // m.delete() - // msg.channel.send(lostEmb) - // } - // }) - } -};
\ No newline at end of file diff --git a/src/commands/fun/rolldie.ts b/src/commands/fun/rolldie.ts deleted file mode 100644 index 6426238..0000000 --- a/src/commands/fun/rolldie.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import { MessageEmbed } from 'discord.js'; - -module.exports = class RollDieFun extends Command { - constructor(client) { - super(client, { - name: 'rolldie', - aliases: ['dice'], - group: 'fun', - memberName: 'rolldie', - description: 'Role a die.', - throttling: { - usages: 5, - duration: 30 - }, - examples: ['uwu!roledie', 'uwu!dice'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] - }); - } - run(msg: CommandoMessage) { - var r = [1, 2, 3, 4, 5, 6]; - var s = r[Math.floor(Math.random() * r.length)]; - let embed = new MessageEmbed() - - .setAuthor('The die landed on', 'https://i.imgur.com/dK18NpV.png') - .setDescription('`' + s + '`'); - - msg.say(embed); - } -};
\ No newline at end of file diff --git a/src/commands/fun/russianroulette.ts b/src/commands/fun/russianroulette.ts deleted file mode 100644 index ba67118..0000000 --- a/src/commands/fun/russianroulette.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import { MessageEmbed } from 'discord.js'; - -module.exports = class RussianRouletteFun extends Command { - constructor(client) { - super(client, { - name: 'russianroulette', - aliases: ['rr'], - group: 'fun', - memberName: 'russianroulette', - description: 'Play a game of Russian Roulette.', - throttling: { - usages: 5, - duration: 30 - }, - examples: ['uwu!russianroulette', 'uwu!rr'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] - }); - } - run(msg: CommandoMessage) { - var s = Math.floor(Math.random() * 6) - if (s === 0) { - return msg.reply('๐ฅ *Bang.* You lose.') - } else { - return msg.reply("๐ซ *Click.* You survived."); - } - } -};
\ No newline at end of file diff --git a/src/commands/fun/say.ts b/src/commands/fun/say.ts deleted file mode 100644 index 7a610b4..0000000 --- a/src/commands/fun/say.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando'; -//@ts-ignore -import * as emoji from 'emoji-random' -import * as config from '../../config.json' - -module.exports = class SayFun extends Command { - constructor(client: CommandoClient) { - super(client, { - name: 'say', - group: 'fun', - memberName: 'say', - description: 'Allows you to speak as the bot.', - args: [ - { - key: 'say', - prompt: 'What would you like to send?', - type: 'string' - } - ], - examples: ['uwu!say hi'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] - }); - } - //@ts-ignore - run(msg: CommandoMessage, { say }: any) { - if (config['validUsers'].includes(msg.author.id)) { - if (msg.author.id == '217348698294714370' || msg.guild.member(msg.author.id)?.hasPermission('MANAGE_MESSAGES')) { - msg.say(say) - msg.delete(); - return - } else { - //@ts-ignore - return msg.reply(`Insufficent permissions! ${emoji.random()}`).then(m => m.delete({ timeout: 3000 })) - } - } else { - msg.delete() - //@ts-ignore - return msg.reply(`Insufficent permissions! ${emoji.random()}`).then(m => m.delete({ timeout: 3000 })) - } - } -};
\ No newline at end of file diff --git a/src/commands/fun/showerthought.ts b/src/commands/fun/showerthought.ts deleted file mode 100644 index ba7e86a..0000000 --- a/src/commands/fun/showerthought.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import SubredditCommand from '../../models/commands/Subreddit.js' - -module.exports = class ShowerThoughtFun extends SubredditCommand { - constructor(client) { - super(client, { - name: 'showerthought', - aliases: [ - 'shower-thought', - 'showerthoughts', - 'shower-thoughts' - ], - group: 'fun', - memberName: 'showerthought', - description: 'Gives you a shower thought from **r/Showerthought**.', - examples: ['uwu!showerthought'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - subreddit: 'Showerthoughts' - }); - } - generateText(post) { - return post.title; - } -};
\ No newline at end of file diff --git a/src/commands/fun/smashorpass.ts b/src/commands/fun/smashorpass.ts deleted file mode 100644 index c6aecbc..0000000 --- a/src/commands/fun/smashorpass.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; -import { MersenneTwister19937, bool } from 'random-js' - -module.exports = class SmashOrPassFun extends Command { - constructor(client) { - super(client, { - name: 'smashorpass', - aliases: [ - 'smash-or-pass', - 'sop', - 's-o-p' - ], - group: 'fun', - memberName: 'smashorpass', - description: 'Smash or pass.', - examples: ['uwu!sop'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - args: [ - { - key: 'uUser', - prompt: 'Which user\'s would you like me to check?', - type: 'user' - } - ] - }); - } - run(msg: CommandoMessage, { uUser }) { - let random = MersenneTwister19937.seed(uUser.id) - let smashOrPass = bool()(random) - if (uUser.id === this.client.user?.id) { - msg.reply(`Obviously smash, Google me. ${emoji.random()}`) - } else { - msg.reply(smashOrPass ? 'Smash, I\'d definetly smash. ' : 'Hard pass. Yuck. ' + emoji.random()) - } - } -};
\ No newline at end of file diff --git a/src/commands/fun/spoiler.ts b/src/commands/fun/spoiler.ts deleted file mode 100644 index ff1093c..0000000 --- a/src/commands/fun/spoiler.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; - -module.exports = class SpoilerFun extends Command { - constructor(client) { - super(client, { - name: 'spoiler', - aliases: ['spoil', 'spoilertext', 'spoiler-text', 'spoiltext', 'spoil-text'], - group: 'fun', - memberName: 'spoiler', - description: 'Turn every character in a specified phrase as a ||s||||p||||o||||i||||l||||e||||r||.', - args: [ - { - key: 'say', - prompt: 'What would you like to spoil?', - type: 'string' - } - ], - examples: ['uwu!spoiler hi lol'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] - }); - } - run(msg: CommandoMessage, { say }) { - msg.delete(); - msg.say(say.replace(/./g, '||$&||')) - } -}; diff --git a/src/commands/fun/spongebob.ts b/src/commands/fun/spongebob.ts deleted file mode 100644 index d8010a6..0000000 --- a/src/commands/fun/spongebob.ts +++ /dev/null @@ -1,39 +0,0 @@ -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' - } - ], - throttling: { - usages: 5, - duration: 30 - }, - 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 deleted file mode 100644 index 4bb8d00..0000000 --- a/src/commands/fun/stretch.ts +++ /dev/null @@ -1,37 +0,0 @@ -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' - } - ], - throttling: { - usages: 5, - duration: 30 - }, - 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/subreddit.ts b/src/commands/fun/subreddit.ts deleted file mode 100644 index a9369d2..0000000 --- a/src/commands/fun/subreddit.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import SubredditCommandBase from '../../models/commands/Subreddit.js' -import { shorten, formatNumber } from '../../utils/Util.js' -import { MessageEmbed } from 'discord.js'; - -module.exports = class SubredditFun extends SubredditCommandBase { - constructor(client) { - super(client, { - name: 'subreddit', - aliases: ['r/', 'sub', 'reddit'], - patterns: [/^r\/(.+)/i], - group: 'fun', - memberName: 'subreddit', - description: 'Replies with a random post from a specified subreddit.', - args: [ - { - key: 'sSub', - prompt: 'Which subreddit would you like to get a post from?', - type: 'string', - parse: subreddit => encodeURIComponent(subreddit) - } - ], - examples: ['uwu!say hi'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] - }); - } - generateText(post, subreddit, icon) { - const embed = new MessageEmbed() - .setColor(0xFFCC4D) - .setAuthor(`r/${subreddit}`, icon, `https://www.reddit.com/r/${subreddit}/`) - .setTitle(shorten(post.title, 256)) - .setImage(post.post_hint === 'image' ? post.url : null) - .setURL(`https://www.reddit.com${post.permalink}`) - .setTimestamp(post.created_utc * 1000) - .setFooter(`โฌ ${formatNumber(post.score)}`); - if (post.thumbnail && post.thumbnail !== 'self' && post.post_hint !== 'image') { - embed.setThumbnail(post.thumbnail); - } - return embed; - } -};
\ No newline at end of file diff --git a/src/commands/fun/surreal.ts b/src/commands/fun/surreal.ts deleted file mode 100644 index 024874a..0000000 --- a/src/commands/fun/surreal.ts +++ /dev/null @@ -1,36 +0,0 @@ -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' - } - ], - throttling: { - usages: 5, - duration: 30 - }, - 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/uglycat.ts b/src/commands/fun/uglycat.ts deleted file mode 100644 index 343bc2d..0000000 --- a/src/commands/fun/uglycat.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando'; - -module.exports = class UglyCatFun extends Command { - constructor(client: CommandoClient) { - super(client, { - name: 'uglycat', - aliases: ['ugycat'], - group: 'fun', - memberName: 'uglycat', - description: 'Sends an ugly cat.', - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'EMBED_LINKS'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'EMBED_LINKS'], - examples: ['uwu!uglycat'], - throttling: { - usages: 5, - duration: 30 - }, - }); - } - run(msg: CommandoMessage) { - return msg.say({ files: ['https://i.pinimg.com/originals/4d/19/0f/4d190f1307b35e7155bb4b898e19d545.jpg'] }) - } -};
\ No newline at end of file diff --git a/src/commands/fun/yearfact.ts b/src/commands/fun/yearfact.ts deleted file mode 100644 index 8448efc..0000000 --- a/src/commands/fun/yearfact.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import axios from 'axios' -import emoji from 'emoji-random' - -module.exports = class DayFactFun extends Command { - constructor(client) { - super(client, { - name: 'yearfact', - aliases: [ - 'year-fact', - 'yearfacts', - 'year-facts' - ], - group: 'fun', - memberName: 'yearfact', - description: 'Grabs facts about a specified year.', - args: [ - { - key: 'year', - prompt: 'What year would you like to get facts for?', - type: 'integer', - default: 'random' - } - ], - examples: ['uwu!yearfact', 'uwu!yearfact 2012'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] - }); - } - async run(msg: CommandoMessage, { year }) { - const fact = await axios.get(`http://numbersapi.com/${year}/year`).catch(err => { - console.log(err) - msg.reply('Woops, here was an error with the (http://numbersapi.com) API. ' + emoji.random()) - }) - msg.reply(fact.data) - } -};
\ No newline at end of file diff --git a/src/commands/fun/yomomma.ts b/src/commands/fun/yomomma.ts deleted file mode 100644 index c0b1743..0000000 --- a/src/commands/fun/yomomma.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import axios from 'axios' -import { MessageEmbed } from 'discord.js'; -import emoji from 'emoji-random' - -module.exports = class YoMommaFun extends Command { - constructor(client) { - super(client, { - name: 'yomomma', - aliases: ['yo-momma', 'yomama', 'mum', 'mam', 'mom'], - group: 'fun', - memberName: 'yomomma', - description: 'Gives you a yo momma joke.', - examples: ['uwu!yomomma'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] - }); - } - async run(msg: CommandoMessage) { - try { - let text = await (await axios.get('http://api.yomomma.info/')).data.joke - msg.reply(`${text}` + ' ' + emoji.random()) - } catch (err) { - console.log(err) - msg.reply('Woops, there was an error with the (https://yomomma.info/) API. ' + emoji.random()) - } - } -};
\ No newline at end of file |