mirror of
https://gitlab.com/qwerinope/qweribot.git
synced 2026-02-04 09:46:57 +01:00
fix that lootboxes are disabled with use command as well
This commit is contained in:
@@ -25,6 +25,10 @@ export default new Command({
|
|||||||
}
|
}
|
||||||
const selection = items.get(messagequery[0].toLowerCase());
|
const selection = items.get(messagequery[0].toLowerCase());
|
||||||
if (messagequery[0].toLowerCase() === "lootbox") {
|
if (messagequery[0].toLowerCase() === "lootbox") {
|
||||||
|
if (await redis.sismember("disabledcommands", "getloot")) {
|
||||||
|
await sendMessage("Lootboxes are currently disabled", msg.messageId);
|
||||||
|
return;
|
||||||
|
}
|
||||||
await getloot.execute(msg, user);
|
await getloot.execute(msg, user);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user