Loading repository data…
Loading repository data…
mxyng / repository
Run an AI-powered Discord bot from the comfort of your laptop.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
discollama is a Discord bot powered by a local large language model backed by Ollama.
discollama.pyDISCORD_TOKEN=xxxxx docker compose up
[!NOTE] You must setup a Discord Bot and set environment variable
DISCORD_TOKENbeforediscollama.pycan access Discord.
discollama.py requires an Ollama server. Follow the steps in ollama/ollama repository to setup Ollama.
By default, it uses 127.0.0.1:11434 which can be overwritten with OLLAMA_HOST.
Note: Deploying this on Linux requires updating network configurations and
OLLAMA_HOST.
discollama.pyThe default LLM is mike/discollama. A custom personality can be added by changing the SYSTEM instruction in the Modelfile and running ollama create:
ollama create mymodel -f Modelfile
This can be changed in compose.yaml:
environment:
- OLLAMA_MODEL=mymodel
See ollama/ollama for more details.
Discord users can interact with the bot by mentioning it in a message to start a new conversation or in a reply to a previous response to continue an ongoing conversation.