From 945e17f271d0c2125e928248da543fa37f9e85e5 Mon Sep 17 00:00:00 2001 From: qwerinope Date: Fri, 4 Jul 2025 22:43:05 +0200 Subject: [PATCH] made the use command not disableable, just disable the items --- README.md | 2 +- bot/commands/useitem.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7bd14dc..6a1d34f 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ COMMAND|FUNCTION|USER|ALIASES|DISABLEABLE `iteminfo {item}`|Get item function and aliases|anyone|`iteminfo` `itemhelp` `info`|:white_check_mark: `inventory [target]`|Get inventory contents of target or self|anyone|`inventory` `inv`|:white_check_mark: `give {target} {item} {amount}`|Give targeted user amount of items|anyone|`give`|:white_check_mark: -`use {item} ...`|Use item. More info at [The items section](#items)|anyone|`use`|:white_check_mark: +`use {item} ...`|Use item. More info at [The items section](#items)|anyone|`use`|:x: `admingive {target} {item} {amount}`|Give targeted user amount of new items|admins|`admingive`|:white_check_mark: ### Administrative commands diff --git a/bot/commands/useitem.ts b/bot/commands/useitem.ts index 22fcfed..ed3761e 100644 --- a/bot/commands/useitem.ts +++ b/bot/commands/useitem.ts @@ -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);