silvanus/dot-commands/ping.js

18 lines
457 B
JavaScript
Raw Normal View History

2023-05-16 17:24:42 +00:00
const fn = require('../modules/functions.js');
module.exports = {
name: "ping",
description: "pong",
usage: "ping pong",
2023-06-06 21:57:14 +00:00
permission: "everyone",
2023-05-16 17:24:42 +00:00
async execute(message, commandData) {
2023-06-03 19:40:12 +00:00
if (fn.dotCommands.checkPermissions(this.permission, message.author.id)) {
try {
await message.reply("Pong!");
} catch (err) {
console.error(err);
await message.reply(fn.builders.errorEmbed("There was an error running the command."));
}
}
2023-05-16 17:24:42 +00:00
}
}