Self-host your own Discord bot with access to 36 AI models. Fully customizable. Unlimited usage.
Go to Discord Developer Portal and click "New Application". Give it a name β this will be your bot's username.
Navigate to the Bot tab and click "Reset Token". Copy the token. Then enable all 3 Privileged Gateway Intents.
In the Developer Portal, go to OAuth2 β URL Generator. Check bot and applications.commands under Scopes. Under Bot Permissions, check Send Messages, Read Message History, Use Slash Commands, and Attach Files.
Copy the URL, open it in your browser, and authorize the bot on your server.
Download the bot template below. Open the folder and run:
cd discord-bot npm install
Rename .env.example to .env and add your token and client ID.
npm start
Your bot will come online and register all slash commands automatically. Type / in any channel to see them in action.
Your bot comes with these commands pre-installed. You can edit index.js to add, remove, or rename any of them.
| Command | Description |
|---|---|
/chat <message> | Chat with AI using your selected model |
/search <query> | Search the web with AI-generated answers |
/merge <message> [models] | Combine 2-3 AI models for one answer |
/models | List all 36 available AI models |
/model <name> | Switch your active AI model |
/clear | Clear your conversation history |
/info | Show your current model and stats |
/help | Show all commands |
GPT-5, Claude Opus 4.7, Gemini 3, DeepSeek, Grok, Qwen, and more
No caps, no limits. Send as many messages as you want
Bot remembers context across messages (40-turn history)
Search the live web with cited sources
Combine multiple models to get the best of all worlds
Edit commands, rename the bot, change behavior, add features
The template includes everything you need: index.js, package.json, .env.example, and SETUP.md with full instructions.
Your bot needs to run 24/7 to respond to commands. Here are free hosting options:
pm2 to keep the bot aliveEverything in index.js is editable. Key areas: