swapped to a new db locally hosted
This commit is contained in:
@@ -1,17 +1,10 @@
|
||||
const { readDb } = require('../../backend/db.js');
|
||||
// ping uses backend settings via API
|
||||
|
||||
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.');
|
||||
}
|
||||
async execute(interaction) {
|
||||
await interaction.reply('Pong!');
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user