discord-ai-bot  by 238SAMIxD

Discord bot for interacting with local LLMs and Stable Diffusion

created 2 years ago
283 stars

Top 93.3% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This project provides a Discord bot that integrates with Ollama for AI chat and AUTOMATIC1111 Stable Diffusion for image generation. It targets Discord server administrators and users seeking to add AI capabilities to their communities. The bot allows for conversational AI and image creation directly within Discord channels.

How It Works

The bot leverages Node.js to connect to Discord via its API. It interacts with Ollama's local inference server for text generation and AUTOMATIC1111's Stable Diffusion Web UI API for image synthesis. Users can trigger AI responses and image generation by mentioning the bot in designated Discord channels.

Quick Start & Requirements

  • Install: npm install followed by npm start
  • Prerequisites: Node.js (v14+), Ollama (with a pulled model like orca or llama2), AUTOMATIC1111 Stable Diffusion Web UI (with --api --listen flags), Discord bot token, enabled Message Content and Server Members intents, and specific channel IDs.
  • Setup: Requires configuring a .env file with Discord and Ollama credentials. Docker setup is also available via make compose-up or docker compose -p discord-ai up.
  • Docs: README

Highlighted Details

  • Supports multiple Ollama server instances.
  • Allows customization of the bot's system message.
  • Can be configured to operate within specific Discord channels.

Maintenance & Community

The project is currently in maintenance mode, with a rewrite to TypeScript planned on a separate branch.

Licensing & Compatibility

The repository does not explicitly state a license.

Limitations & Caveats

The project is in maintenance mode, indicating potential instability or ongoing changes. The lack of a specified license may pose compatibility issues for commercial or closed-source use.

Health Check
Last commit

2 months ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
15 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.