LogoRobo.js
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-ts

Then navigate into your project directory:

cd <project-name>

Configure your OpenAI API key in .env:

OPENAI_API_KEY=your-api-key

Run development mode:

npm run dev

Features

  • Natural language conversations
  • Context awareness
  • Custom system prompts
  • Voice support

Configuration

ping.ts/ping
messageCreate.ts
ai.tsAI plugin config
.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

On this page