OpenViSTAI · Agents · Blockchain · Crypto
Menu
Chat & Assistants

Discord AI Bot

Discord AI Bot is a TypeScript Discord bot that routes slash-command conversations to Ollama-hosted language models and image-generation requests to AUTOMATIC1111 Stable Diffusion.

Independent OpenViST project profile, based on linked sources.

Discord AI Bot — Self-hosted Discord chat backed by Ollama
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you can configure and run the Discord bot and the model services, and want to issue those services' chat or image-generation requests from Discord slash commands.

Who it is for

  • Discord server operators who want slash-command access to Ollama models.
  • People running Ollama and AUTOMATIC1111 who want chat and image-generation workflows in Discord.

Documented uses

  • Chat with an Ollama model through Discord's `/chat` command.
  • Send prompts for text generation with `/generate`.
  • Generate images through AUTOMATIC1111 with `/text2img`.
  • Keep per-user, per-channel conversation history in SQLite and clear it with `/clearhistory`.
  • Use a vision-capable Ollama model to inspect an image attached to a chat or generation request.
Before you choose

Requirements & limits

The repository is public. The documented setup requires a Discord bot application and token, plus locally configured model services and runtime dependencies.

  • Node.js 22.13+ and pnpm 12+ are specified for the documented source setup.
  • Ollama must be running with a downloaded model; vision input requires a vision-capable model.
  • Image generation requires AUTOMATIC1111 Stable Diffusion and its API-enabled server.
  • Chat history is stored in SQLite, separately per user and channel, with the last 50 messages retained.
  • Each connected Ollama or Stable Diffusion server handles one request at a time; requests can queue and may be rejected after the configured wait timeout.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Set up the bot for Ollama chat

Prepare the documented Node.js installation to run Discord AI Bot with an Ollama model.

Before you start

  • Node.js 22.13 or newer
  • pnpm 12 or newer
  • Ollama and a downloaded model
  • A Discord application and bot token

Steps

  1. Install Node.js and pnpm, then install Ollama.

  2. Download a model with Ollama and start the service using ollama serve.

  3. Create a Discord bot, invite it with the documented message and channel permissions, and configure .env with its token and model.

  4. Install project dependencies with pnpm i, then start the bot with pnpm start.

Expected outcome

The bot is started and its documented Discord slash commands can be used, including `/chat` and `/generate`.

Guide limitations

  • This setup recipe does not cover Stable Diffusion image generation; that requires separately installing AUTOMATIC1111 and starting its API.
  • The README's Docker setup has additional host-network configuration requirements.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
20 November 2026
Original website title
238SAMIxD/discord-ai-bot · Official homepage title · retained in its source language