An AI powered Discord bot assistant for Helix Labs, built with Discord.js v14 and SapphireJS.
- AI-powered responses using Ollama backend
- Slash commands for interaction
- Message context menus for explanations
- Prefix-based text commands
- Interactive mention responses with embeds and buttons
- Clone the repository
- Install dependencies:
npm install - Create a
.envfile with your Discord bot token and Ollama URL - Build the project:
npm run build - Start the bot:
npm start
The bot uses a centralized configuration system in src/config.ts. Environment variables from .env are loaded into a typed configuration object for better type safety and organization.
DISCORD_TOKEN: Your Discord bot token (required)OLLAMA_BASE_URL: Ollama API base URLBOT_PREFIX: Command prefix for text commands (default: -)OLLAMA_MODEL: AI model to use (default: gemma3:1b)SYSTEM_PROMPT: System prompt for the AI model (see config.ts for default)
You can customize how the AI responds by modifying the SYSTEM_PROMPT in src/config.ts or by setting the SYSTEM_PROMPT environment variable in your .env file.
/ask <prompt>: Ask the AI a question- Right-click a message → "Explain Message": Get AI explanation and context for the selected message
-ping: Test bot latency@Cranberry: Get interactive help menu with buttons
Use npm run dev for development with ts-node.
MIT