parent
63014160df
commit
74d5abe8ca
@ -0,0 +1,22 @@ |
|||||||
|
const Discord = require('discord.js'); |
||||||
|
|
||||||
|
module.exports = { |
||||||
|
name: "ping", |
||||||
|
aliases: [], |
||||||
|
meta: { |
||||||
|
category: 'Misc', |
||||||
|
description: "Find out Natsuki's latency", |
||||||
|
syntax: '`ping`', |
||||||
|
extra: null |
||||||
|
}, |
||||||
|
help: "Definitely not much to see here...", |
||||||
|
async execute(message, msg, args, cmd, prefix, mention, client) { |
||||||
|
return message.channel.send({embeds: [new Discord.MessageEmbed() |
||||||
|
.setTitle("Client Latency") |
||||||
|
.setDescription(`Response Latency: \`${new Date().getTime() - message.createdTimestamp}ms\`\nAPI Latency: \`${client.ws.ping}ms\``) |
||||||
|
.setFooter({text: "Natsuki", iconURL: client.user.avatarURL()}) |
||||||
|
.setTimestamp() |
||||||
|
.setColor('c375f0') |
||||||
|
]}); |
||||||
|
} |
||||||
|
}; |
Loading…
Reference in new issue