did stuff
This commit is contained in:
parent
57fb111d3b
commit
10a0a7aca7
9 changed files with 1229 additions and 51 deletions
|
@ -0,0 +1,22 @@
|
|||
exports.conf = {
|
||||
enabled: true,
|
||||
guildOnly: false,
|
||||
aliases: [],
|
||||
permLevel: 'User',
|
||||
requiredPerms: [],
|
||||
cooldown: 2000
|
||||
}
|
||||
|
||||
exports.help = {
|
||||
name: 'ping',
|
||||
category: 'Utility',
|
||||
description: 'Displays bot latency in miliseconds.',
|
||||
usage: 'ping'
|
||||
}
|
||||
|
||||
exports.run = async (client, message) => {
|
||||
const msg = await message.channel.send('⏱️ Please wait...')
|
||||
msg.edit(
|
||||
`:ping_pong: Pong! Latency is ${msg.createdTimestamp - message.createdTimestamp}ms, API Latency is ${Math.round(client.ws.ping)}ms`
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue