18 lines
430 B
JavaScript
18 lines
430 B
JavaScript
const { readDb } = require('../../backend/db.js');
|
|
|
|
module.exports = {
|
|
name: 'ping',
|
|
description: 'Replies with Pong!',
|
|
enabled: true,
|
|
execute(interaction) {
|
|
const db = readDb();
|
|
const settings = db[interaction.guildId] || { pingCommand: false };
|
|
|
|
if (settings.pingCommand) {
|
|
interaction.reply('Pong!');
|
|
} else {
|
|
interaction.reply('The ping command is disabled on this server.');
|
|
}
|
|
},
|
|
};
|