You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Natsuki/commands/misc/ping.js

22 lines
768 B

3 years ago
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')
]});
}
};