import { Command } from 'discord-akairo'; import { Message } from 'discord.js'; import request from 'node-superfetch'; export default class IPOwner extends Command { public constructor() { super('ip', { aliases: ['ip'], category: 'owner', description: { content: 'Gives you the bot\'s IP address.', usage: '', examples: [ '' ] }, ratelimit: 3, ownerOnly: true }); } public async exec(msg: Message): Promise { let { body } = await request.get('https://api.ipify.org').query({ format: 'json' }); //@ts-ignore return msg.reply(`${this.client.user.username}'s IP address is **${body.ip}**. *Which script kiddie in chat asked you to send this zzz. -Fuwn*`); } }