Files
broccolini-bot/docs
indifferentketchup d73422555d rename path: fix env-var mismatch, gut canRename gate, add primary-bot fallback on 401/403/429
- secondary rename-bot token was set as RENAME_TOKEN in .env but utils/renamer.js reads RENAMER_BOT; silently no-op'd every rename (host .env renamed separately)
- services/tickets.js canRename gutted to an always-ok shim; Mongo 2/10min per-channel gate is redundant since renames flow through RENAMER_BOT's own bucket. Ticket.renameCount / renameWindowStart remain as orphan fields (no migration)
- handlers/buttons.js + commands.js: drop the four "Channel renamed too quickly" else-branches and the rename-countdown label suffix; replace .catch(() => {}) with .catch(err => logError('rename', err)...)
- services/channelQueue.js: executeRename falls back to channel.setName(currentName) when renamer throws err.fallback === true (401/403/429); classifies non-fallback errors as renameQueue:token/permission (401/403) or renameQueue:secondary-bot ratelimited (429)
- utils/renamer.js: on 401/403 throw err.fallback=true immediately; on 429 respect retry_after up to 2000ms then throw err.fallback=true
- docs: align CLAUDE.md, docs/api/DISCORD_API_VALIDATION.md, docs/architecture/CRITICAL_FILES_AND_HOW_IT_WORKS.md

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-20 15:56:06 +00:00
..
2026-02-17 21:49:58 -06:00
2026-02-22 19:05:08 -06:00
2026-02-17 21:49:58 -06:00
2026-02-17 21:49:58 -06:00

Broccolini Bot documentation

Docs are grouped by topic. Paths below are relative to this folder.

Setup & config

Doc Description
setup/ENV_AND_SECURITY.md Test env workflow, security checklist, agent rules
setup/MONGODB_SETUP.md MongoDB connection, schemas, and testing
setup/QUICKSTART.md Get started in a few minutes
setup/PROJECT_STRUCTURE.md File and directory layout

Architecture

Doc Description
architecture/CRITICAL_FILES_AND_HOW_IT_WORKS.md Critical files, startup sequence, email ↔ Discord flow
architecture/COMMANDS_ANALYSIS.md Commands analysis

Features & roadmap

Doc Description
features/PHASE_FEATURES.md Phased feature list and variables
features/FEATURES_SUMMARY.md · features/NEW_FEATURES.md Feature overview and changelog
features/IMPLEMENTATION_SUMMARY.md Implementation summary
features/PROPOSAL.md Roadmap and possible next steps
features/UPGRADE_COMPLETE.md Upgrade notes

API

Doc Description
api/DISCORD_API_IMPROVEMENTS.md · api/DISCORD_API_VALIDATION.md Discord API implementation notes

Analytics

Doc Description
analytics/Part 1 Batch Analytics Report.md · .html Part 1 batch analytics
analytics/Part 2 Batch Analytics Report.md Part 2 batch analytics
analytics/Part 1 Analysis.md · analytics/Part 1 Prompting.md Analysis and prompting notes

Reference

Doc Description
reference/game-list.md Game list for tickets
reference/regex-and-games.md Regex and games reference