diff --git a/assets/json/shutdown.json b/assets/json/shutdown.json new file mode 100644 index 00000000..ac25d268 --- /dev/null +++ b/assets/json/shutdown.json @@ -0,0 +1,13 @@ +[ + "Shutting down... :(", + "What did I do to deserve this?", + "Taking a little break...", + "See you again soon!", + "Goodnight...", + "Oyasumi...", + "おやすみ!", + "I'll just rest my eyes for a bit...", + "Take care of the inn for me!", + "I'll be back!", + "_Explodes._" +] diff --git a/commands/util/ip.js b/commands/util/ip.js index be07029e..98422d28 100644 --- a/commands/util/ip.js +++ b/commands/util/ip.js @@ -25,6 +25,7 @@ module.exports = class IpCommand extends Command { const { body } = await request .get('https://api.ipify.org/') .query({ format: 'json' }); - return msg.say(body.ip); + await msg.direct(body.ip); + return msg.say('📬 Sent the IP to your DMs!'); } }; diff --git a/commands/util/shutdown.js b/commands/util/shutdown.js index b95c65da..7e8e424e 100644 --- a/commands/util/shutdown.js +++ b/commands/util/shutdown.js @@ -1,4 +1,5 @@ const Command = require('../../structures/Command'); +const texts = require('../../assets/json/shutdown'); module.exports = class ShutdownCommand extends Command { constructor(client) { @@ -27,7 +28,8 @@ module.exports = class ShutdownCommand extends Command { this.uses++; this.client.exportCommandLeaderboard(); this.client.logger.info('[SHUTDOWN] Manual shutdown engaged.'); - await msg.say('Shutting down... :('); + const text = texts[Math.floor(Math.random() * texts.length)]; + await msg.say(text); process.exit(code); return null; } catch { diff --git a/package.json b/package.json index 6ec8533b..ad6b8c89 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "116.15.3", + "version": "116.15.4", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {