Documentation Index
Fetch the complete documentation index at: https://docs.boostgpt.co/llms.txt
Use this file to discover all available pages before exploring further.
Setup
1. Create Discord Bot
Create bot
Navigate to Bot section and create a bot user
Enable intents
Enable MESSAGE CONTENT INTENT in Bot settings
Copy token
Copy your bot token
2. Install Dependencies
npm install @boostgpt/router
DISCORD_TOKEN=your_discord_bot_token
BOOSTGPT_BOT_ID=your_boostgpt_bot_id
Usage
import { Router, DiscordAdapter } from '@boostgpt/router';
const router = new Router({
apiKey: process.env.BOOSTGPT_API_KEY,
projectId: process.env.BOOSTGPT_PROJECT_ID,
adapters: [
new DiscordAdapter({
discordToken: process.env.DISCORD_TOKEN,
botId: process.env.BOOSTGPT_BOT_ID,
replyInDMs: true,
replyOnMention: true
})
]
});
await router.start();
Configuration Options