18 lines
521 B
JavaScript
18 lines
521 B
JavaScript
|
exports.run = async (client, message, args, level) => { // eslint-disable-line no-unused-vars
|
||
|
const msg = await message.channel.send("Ping?");
|
||
|
msg.edit(`Pong! Latency is ${msg.createdTimestamp - message.createdTimestamp}ms. API Latency is ${Math.round(client.ws.ping)}ms`);
|
||
|
};
|
||
|
|
||
|
exports.conf = {
|
||
|
enabled: true,
|
||
|
guildOnly: false,
|
||
|
aliases: [],
|
||
|
permLevel: "User"
|
||
|
};
|
||
|
|
||
|
exports.help = {
|
||
|
name: "ping",
|
||
|
category: "Plugins",
|
||
|
description: "It like... Pings. Then Pongs. And it's not Ping Pong.",
|
||
|
usage: "ping"
|
||
|
};
|