From f3c6f6a6b346ba2e520dbdeea0cdbcf7d11ad6e6 Mon Sep 17 00:00:00 2001 From: qwerinope Date: Thu, 22 Jan 2026 00:37:10 +0100 Subject: [PATCH] fix that lootboxes are disabled with use command as well --- src/commands/useitem.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commands/useitem.ts b/src/commands/useitem.ts index 99ced56..9614927 100644 --- a/src/commands/useitem.ts +++ b/src/commands/useitem.ts @@ -25,6 +25,10 @@ export default new Command({ } const selection = items.get(messagequery[0].toLowerCase()); 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); return; }