Skip to content

NIMbus v2.0.6: Discord Bot Stability & Expanded Configuration

Choose a tag to compare

@cyberofficial cyberofficial released this 20 Jun 06:47
· 115 commits to master since this release

A Discord-focused release that fixes three classes of bugs the bot was hitting at scale (Discord interaction timeouts, mass-ping risks, and 429-rate-limited typing indicators) and significantly expands what the setup wizard exposes for Discord configuration.

Highlights

  • Slash command interaction timeouts fixed - compact, new, and status now defer the response immediately, so they no longer fail with the Discord 3-second interaction timeout under load
  • Accidental @everyone / @here mass-pings prevented - every user message, bot response, and stored conversation history entry has zero-width spaces inserted into @everyone / @here so a user cannot trick the bot into pinging the whole server
  • Typing indicator cooldown - typing is no longer requested on every message; the bot waits 5 seconds per channel between typing pings to avoid hitting Discord's 429 rate limit
  • Message queue removed - conversation messages are now handled directly per message instead of being drained FIFO, which cuts response latency
  • Setup wizard Discord section expanded - exposes max-tokens, compact-threshold, user / server rate limits, split threshold, and per-command toggles through the wizard

Features

  • DISCORD_ENABLED toggle - explicit kill-switch that prevents the bot from starting even if a token and guild ID are configured
  • Prefix commands - bot now supports a configurable text prefix (default !!) in parallel with slash commands for ask, compact, new, and status, each independently toggleable
  • Configurable live-conversation behavior - DISCORD_COMMAND_PREFIX and DISCORD_REQUIRE_MENTION let you tune whether the bot responds to every message vs. only @mentions or prefix invocations
  • Setup wizard exposes the full Discord config - token, multi-guild IDs, control channels (comma-separated), conversation category, specific conversation channel IDs, owner ID, owner-only mode, max-tokens per conversation, compact threshold, auto-compact toggle, per-user cooldown, server request limit / window, skip-files, message split threshold, and per-command on/off toggles
  • Multi-guild guidance in wizard - prompts now accept comma-separated guild IDs and explain how to find Developer Mode IDs

Fixes

  • Discord 3-second interaction timeout on /compact, /new, and /status - these commands now call interaction.response.defer(...) and reply via followup.send(...) instead of racing the 3-second window before doing real work
  • Assistant-message prefix drift in conversation history - the model no longer sees its own past responses prefixed with NIM: (which was reinforcing the prefix over many turns). Only user messages get the username prefix in stored history
  • Accidental mass-pings - user input, assistant output, and stored history all have @everyone / @here neutralized with zero-width-space insertion
  • Discord 429s on typing indicator - per-channel cooldown keeps typing pings to one per 5 seconds; the streaming pipeline is also no longer nested inside the typing() context, so a noisy channel can no longer block model responses on a typing budget
  • Response latency for queued messages - removed the FIFO _process_message_queue and processes each incoming message immediately in its own async task

Files Touched

  • discord_bot/bot.py - prefix command routing, message sanitization, typing cooldown, removed queue
  • discord_bot/cog.py - defer + followup for slow commands, conversation-history username prefix logic
  • discord_bot/conversation.py - only-prefix-user-messages behavior
  • config/settings.py - DISCORD_ENABLED, prefix toggles, DISCORD_REQUIRE_MENTION
  • setup_wizard.py - full Discord configuration section
  • .env.example - new variables documented

Quick Start

# Windows
nimbus.exe --init    # first time setup
nimbus.exe           # start the proxy
claude               # use Claude Code normally