Alex 5a95f26586
Some checks failed
Builds / Discord-Node-Build (push) Has been cancelled
Builds / Discord-Ollama-Container-Build (push) Has been cancelled
Coverage / Discord-Node-Coverage (push) Has been cancelled
file permissions fixes
2025-05-20 23:09:03 -04:00
2024-12-30 15:53:29 -08:00
2025-05-19 23:59:07 -04:00
2025-01-31 14:12:11 -08:00
2024-12-30 15:53:29 -08:00
2025-05-20 23:09:03 -04:00
2025-05-20 23:09:03 -04:00
2025-05-19 23:59:07 -04:00
2024-04-13 19:07:49 -07:00
2025-05-20 21:06:56 -04:00
2025-05-17 22:32:30 -04:00
2025-05-19 08:34:04 -04:00

ollama+discord

Discord Ollama Chatbot Integration

A Discord chatbot with a little "magic" added

A fork of https://github.com/kevinthedang/discord-ollama

About/Goals v 1.0

Ollama is an AI model management tool that allows users to install and use custom large language models locally.
The project aims to:

  • Create a Discord bot that will utilize Ollama and chat to chat with users!
    • User Preferences on Chat
    • Message Persistance on Channels and Threads
      • Threads
      • Channels
    • Containerization with Docker
    • Slash Commands Compatible
    • Generated Token Length Handling for >2000
      • Token Length Handling of any message size
    • User vs. Server Preferences
    • Redis Caching
    • Administrator Role Compatible
    • Multi-User Chat Generation (Multiple users chatting at the same time) - This was built in from Ollama v0.2.1+
    • Automatic and Manual model pulling through the Discord client
    • Leverage function calling capabilities in Gemma3
      • json-formatted replies allowing hidden COT and statefulness
      • base ollama system prompt providing json formatting, jailbreak resistance, and sentiment tracking
      • function calling to imagegen
      • integrate image recognition
    • Store self- and per-user-sentiment in redis
      • tell the model to create redis set and get commands itself
    • Separate bot personality from base bot instructions (src/personality.json)

Documentation

These are guides to the features and capabilities of this app.

Environment Setup

  • Clone this repo using git clone https://gitea.matrixwide.com/alex/discord-aidolls
  • You will need a .env file in the root of the project directory with the bot's token. There is a .env.sample is provided for you as a reference for what environment variables.
    • For example, CLIENT_TOKEN = [Bot Token]
  • Please refer to the docs for bot setup.

Resources

Acknowledgement

Languages
TypeScript 99.8%
Dockerfile 0.2%