A self-hostable chatbot for Discord that utilizes ollama.
- Install Ollama
pip install discord.py ollama requests
- Open
config.toml
and enter your model and bot token - Run
run.py
- Note: if you want the bot to work without it being pinged/mentioned, use runNoMention.py
- Note 2: if you dont want memories and just something simple, use runStable.py
To use the bot, ping it via its username (e.g. @bot) or reply to it.
Discord coming soon
Any contributions to this would be greatly appreciated.
- Clean code up
- Squash some bugs
- add history "cleaning" (cleans past lines to save on storage, ram, and vram)