diff --git a/README.md b/README.md index 90235c16..db95dc42 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Xiao is a Discord bot coded in JavaScript with [discord.js](https://discord.js.org/) using the [Commando](https://github.com/discordjs/Commando) command framework. With over -300 commands, she is one of the most feature-rich bots out there. +350 commands, she is one of the most feature-rich bots out there. ## Table of Contents @@ -45,8 +45,8 @@ Xiao is a Discord bot coded in JavaScript with ## Fun Information - 350+ Commands -- 16,000+ lines of JavaScript -- 58,000+ lines of JSON data +- 17,000+ lines of JavaScript +- 59,000+ lines of JSON data - 3 years of development - 3,000+ commits @@ -91,7 +91,7 @@ Xiao is a Discord bot coded in JavaScript with ## Commands -Total: 358 +Total: 359 ### Utility: @@ -102,6 +102,7 @@ Total: 358 * **help:** Displays a list of available commands, or detailed information for a specific command. * **info:** Responds with detailed bot information. * **invite:** Responds with the bot's invite links. +* **ip:** Responds with the IP address Xiao's server is running on. * **options:** Responds with a list of server options. * **ping:** Checks the bot's ping to the Discord server. @@ -714,6 +715,8 @@ here. * wave ([API](https://apidocs.imgur.com/)) * wink ([API](https://apidocs.imgur.com/)) * imgur ([API](https://apidocs.imgur.com/)) +- [ipify API](https://www.ipify.org/) + * ip (API) - [Jack The Awesomeness Gamer](https://www.youtube.com/channel/UCIeA23B91hAeR1UuC2VDSdQ) * challenger ([Image](https://www.youtube.com/watch?v=3FebRrXg0bk)) - [jasmaa](https://github.com/jasmaa/) diff --git a/commands/util/ip.js b/commands/util/ip.js new file mode 100644 index 00000000..bd578d4c --- /dev/null +++ b/commands/util/ip.js @@ -0,0 +1,22 @@ +const Command = require('../../structures/Command'); +const request = require('node-superfetch'); + +module.exports = class IpCommand extends Command { + constructor(client) { + super(client, { + name: 'ip', + group: 'util', + memberName: 'ip', + description: 'Responds with the IP address Xiao\'s server is running on.', + guarded: true, + ownerOnly: true + }); + } + + async run(msg) { + const { body } = await request + .get('https://api.ipify.org/') + .query({ format: 'json' }); + return msg.say(body.ip); + } +}; diff --git a/package.json b/package.json index 5480c6cd..7511f3d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "110.5.3", + "version": "110.6.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {