mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 08:17:35 +02:00
Fix
This commit is contained in:
@@ -24,7 +24,7 @@ module.exports = class DisableCommand extends Command {
|
||||
if (!command._enabled) return msg.say(`The \`${command.name}\` command is already disabled.`);
|
||||
if (command.guarded) return msg.say(`The \`${command.name}\` command cannot be disabled.`);
|
||||
command.disable();
|
||||
await this.client.redis.hset('disabled', { [command.name]: true });
|
||||
await this.client.redis.db.hset('disabled', { [command.name]: true });
|
||||
return msg.say(`Disabled the \`${command.name}\` command.`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -23,7 +23,7 @@ module.exports = class EnableCommand extends Command {
|
||||
async run(msg, { command }) {
|
||||
if (command._enabled) return msg.say(`The \`${command.name}\` command is already enabled.`);
|
||||
command.enable();
|
||||
await this.client.redis.hdel('disabled', command.name);
|
||||
await this.client.redis.db.hdel('disabled', command.name);
|
||||
return msg.say(`Enabled the \`${command.name}\` command.`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user