TemplatesDiscord bots
AI Chatbot
A Discord bot template with AI capabilities using @robojs/ai.
AI Chatbot
A chatbot using @robojs/ai and TypeScript for intelligent conversations.
Getting Started
Create a project with this template:
npx create-robo@next <project-name> --template discord-bots/ai-chatbot-tsThen navigate into your project directory:
cd <project-name>Configure your OpenAI API key in .env:
OPENAI_API_KEY=your-api-keyRun development mode:
npm run devFeatures
- Natural language conversations
- Context awareness
- Custom system prompts
- Voice support
Configuration
.envAPI keys
Configure the AI in config/plugins/robojs/ai.mjs:
export default {
model: 'gpt-4',
systemMessage: 'You are a helpful assistant.'
}Hosting
npm run deploy