mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 08:41:39 +01:00
made the use command not disableable, just disable the items
This commit is contained in:
@@ -9,4 +9,4 @@ export default new Command('use', ['use'], 'chatter', async (msg, user) => {
|
||||
if (!selection) { await sendMessage(`'${messagequery[0]}' is not an item`, msg.messageId); return; };
|
||||
if (await redis.sismember('disabledcommands', selection.name)) { await sendMessage(`The ${selection.prettyName} item is disabled`, msg.messageId); return; };
|
||||
await selection.execute(msg, user);
|
||||
});
|
||||
}, false);
|
||||
|
||||
Reference in New Issue
Block a user