mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 06:42:51 +02:00
DM IP, Shutdown funny texts
This commit is contained in:
+2
-1
@@ -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!');
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user