Production now runs on Google Gemini 3 Flash Preview using OpenRouter's Bring Your Own Key feature with a Google Studio API key. This provides a significantly more capable model at near-zero cost.
Bot nickname is now set via BOT_NAME environment variable and injected into the system prompt at startup. No more hardcoded names — deploy the same codebase for any bot.
The bot now responds whenever its nickname appears anywhere in a message (e.g. "hey botname what's up?"), not just @botname or botname: prefixes. Uses string match for security (no regex injection).
- Fixed message duplication bug causing repetitive responses
- Fixed identity confusion where bot would refer to itself in third person
- Fixed bot incorrectly prefixing responses with usernames
- Add
BOT_NAME=yournicktogateway/.env - For Gemini BYOK: add your Google Studio API key in OpenRouter settings, add ~$5 credit balance, set
MODEL=google/gemini-3-flash-preview