Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// File: src/commands/ping.js
module.exports = {
name: 'ping',
description: 'Ping! Pong?',
execute(message) {
const delay = Date.now() - message.createdAt
message.reply(`**pong** *(delay: ${delay}ms)*`)
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment