AI-first Discord bot framework for coding communities.
Byteron-powered coding support, GitHub automation, and polished Discord updates.
ProgrammerBot combines discord.js, MySQL persistence, Pollinations AI, and GitHub automation into one production-ready bot that can scale across servers.
Stable docs note: this section is kept concise for quick GitHub project-page scanning.
- Strong Discord thread support flow for coding communities
- Built-in GitHub change summaries with visual announcements
- Clear deployment path for Webdock + PM2 environments
- Extensible structure for multi-bot or multi-feature growth
- Opens support threads when users mention the bot
- Keeps per-thread memory and contextual AI replies
- Reads screenshots + attached scripts for debugging help
- Sends code back as file attachments when needed
- Executes live API requests during thread replies for real data validation/testing
- Announces GitHub PR/issue/commit updates in Discord
- Generates themed pixel-art update images with Byteron
- Supports webhook mode for near real-time GitHub announcements
- Node.js 20+
- discord.js v14
- MySQL (
mysql2) - Pollinations text + image APIs
- Sharp image compositing
- PM2 process management
- PHP helper scripts for WebSSH operations
- Copy
.env.exampleto.env - Fill required values
- Install + deploy commands
- Start runtime
npm install
npm run deploy
npm startphp /var/www/html/ProgrammerBot/control/install.php
php /var/www/html/ProgrammerBot/control/start.php
php /var/www/html/ProgrammerBot/control/status.phpRequired runtime:
DISCORD_TOKENDISCORD_CLIENT_IDMYSQL_HOSTMYSQL_PORTMYSQL_DATABASEMYSQL_USERMYSQL_PASSWORDPOLLINATIONS_API_KEYPOLLINATIONS_TEXT_MODELPOLLINATIONS_IMAGE_MODEL
GitHub announcements:
GITHUB_REPO_OWNERGITHUB_REPO_NAMEGITHUB_REPO_BRANCHPR_UPDATE_CHANNEL_IDISSUE_UPDATE_CHANNEL_IDCOMMIT_UPDATE_CHANNEL_IDPR_UPDATE_AUTHOR_LOGINPR_UPDATE_AUTHOR_NAMEPR_UPDATE_POLL_INTERVAL_MSPR_UPDATE_MAX_PR_FETCH
Webhook mode:
GITHUB_WEBHOOK_ENABLEDGITHUB_WEBHOOK_HOSTGITHUB_WEBHOOK_PORTGITHUB_WEBHOOK_PATHGITHUB_WEBHOOK_SECRET
AI + memory tuning:
POLLINATIONS_TIMEOUT_MSPOLLINATIONS_MAX_RETRIESTHREAD_MEMORY_MAX_MESSAGESTHREAD_CONTEXT_MAX_MESSAGESTHREAD_USER_HISTORY_MAX_MESSAGESBOT_PUBLIC_NAMEBOT_CREATOR_NAMEBOT_CREATOR_PROFILE_URLAPI_TOOL_TIMEOUT_MSAPI_TOOL_MAX_RESPONSE_CHARSAPI_TOOL_ALLOWED_HOSTS
src/index.js- Discord runtime entrypointsrc/commands/- slash commandssrc/services/threadAiService.js- thread AI workflowsrc/services/attachmentService.js- image/text attachment contextsrc/services/databaseService.js- MySQL schema + persistencesrc/services/prUpdateService.js- GitHub summary + image announcement pipelinesrc/services/githubWebhookServer.js- webhook listenercontrol/- deployment / PM2 helper scripts
For day-to-day deployment and recovery commands, use CHEATSHEET.md.
MIT
