From bb511abc03bb66848947e37a999502b813c77269 Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Thu, 23 Jul 2020 23:24:17 -0700 Subject: goodbye old uwufier :cry: --- src/commands/anime/waifu.ts | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 src/commands/anime/waifu.ts (limited to 'src/commands/anime/waifu.ts') diff --git a/src/commands/anime/waifu.ts b/src/commands/anime/waifu.ts deleted file mode 100644 index d72348f..0000000 --- a/src/commands/anime/waifu.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando'; -import request from 'node-superfetch'; -import { MessageEmbed } from 'discord.js'; -//@ts-ignore yes it does tf -import { shorten } from '../../utils/Util.js' - -module.exports = class WaifuAnime extends Command { - constructor(client: CommandoClient) { - super(client, { - name: 'waifu', - aliases: ['thiswaifudoesnotexist', 'this-waifu-does-not-exist'], - group: 'anime', - memberName: 'waifu', - description: 'Replies with a randomly generated waifu and a backstory. WARNING: don\'t get too attatched.', - examples: [ - - ], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - }); - } - async run(msg: CommandoMessage) { - const num = Math.floor(Math.random() * 100000) - const { text } = await request.get(`https://www.thiswaifudoesnotexist.net/snippet-${num}.txt`) - let emb = new MessageEmbed() - .setDescription(shorten(text, 1000)) - .setColor(0xFFCC4D) - .setThumbnail(`https://www.thiswaifudoesnotexist.net/example-${num}.jpg`) - return msg.reply(emb) - } -}; \ No newline at end of file -- cgit v1.2.3