Skip to content

Conversation

Copy link

Copilot AI commented Feb 10, 2026

The !faq command now participates in the same global 10-second cooldown as !q and !rq commands.

Changes

  • src/commands/getFaq.ts: Added cooldown check using existing tryConsumeGlobalQuoteCooldown() utility
execute: async (user, args, bot: Bot, api: ForestBotAPI) => {
    const cooldown = tryConsumeGlobalQuoteCooldown();
    if (!cooldown.ok) {
        bot.Whisper(user, ` This command is on cooldown. Try again in ${cooldown.remainingSeconds}s.`);
        return;
    }
    // ... rest of command logic
}

The shared cooldown timer in quoteCooldown.ts ensures any invocation of !q, !rq, or !faq triggers a 10-second cooldown for all three commands.

Original prompt

Add !faq to the same global 10 second anti spam limit as !q and !rq


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits February 11, 2026 00:00
Co-authored-by: BaconCat1 <126538523+BaconCat1@users.noreply.github.com>
Co-authored-by: BaconCat1 <126538523+BaconCat1@users.noreply.github.com>
Copilot AI changed the title [WIP] Add !faq command to global 10 second anti-spam limit Add !faq to shared 10s global cooldown with !q and !rq Feb 11, 2026
Copilot AI requested a review from BaconCat1 February 11, 2026 00:02
@BaconCat1 BaconCat1 marked this pull request as ready for review February 11, 2026 00:02
Copilot AI review requested due to automatic review settings February 11, 2026 00:02
@BaconCat1 BaconCat1 review requested due to automatic review settings February 11, 2026 00:03
@BaconCat1 BaconCat1 merged commit 08d5f50 into master Feb 11, 2026
4 of 5 checks passed
Copilot AI requested a review from BaconCat1 February 11, 2026 00:04
Copilot stopped work on behalf of BaconCat1 due to an error February 11, 2026 00:04
@BaconCat1 BaconCat1 deleted the copilot/add-faq-anti-spam-limit branch February 11, 2026 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants