mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 15:57:54 +02:00
Make owner commands cleaner
This commit is contained in:
+2
-2
@@ -25,7 +25,7 @@ module.exports = class IpCommand extends Command {
|
||||
const { body } = await request
|
||||
.get('https://api.ipify.org/')
|
||||
.query({ format: 'json' });
|
||||
await msg.direct(body.ip);
|
||||
return msg.say('📬 Sent the IP to your DMs!');
|
||||
if (msg.guild) await msg.say('📬 Sent the IP to your DMs!');
|
||||
return msg.direct(body.ip);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user