diff options
Diffstat (limited to 'src/commands/fun/yomomma.ts')
| -rw-r--r-- | src/commands/fun/yomomma.ts | 32 |
1 files changed, 0 insertions, 32 deletions
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 |