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/bot/ip.ts | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 src/commands/bot/ip.ts (limited to 'src/commands/bot/ip.ts') diff --git a/src/commands/bot/ip.ts b/src/commands/bot/ip.ts deleted file mode 100644 index c565cec..0000000 --- a/src/commands/bot/ip.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; -import { MessageEmbed } from 'discord.js'; -import request from 'node-superfetch' - -module.exports = class IPBot extends Command { - constructor(client) { - super(client, { - name: 'ip', - group: 'bot', - memberName: 'ip', - description: 'Gives you uwufier\'s ip.', - examples: ['uwu!ip'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - ownerOnly: true - }); - } - async run(msg: CommandoMessage) { - let { body } = await request - .get('https://api.ipify.org') - .query({ format: 'json' }) - - msg.say('Please wait...').then(m => { - m.edit(`** **`); - - let emb = new MessageEmbed() - .setDescription(`uwufier\'s current IP address is **${body.ip}**. ` + emoji.random()) - .setColor(0xFFCC4D) - - msg.say(emb); - }); - } -}; \ No newline at end of file -- cgit v1.2.3