Locally Hosted LLM Discord Bot for your servers!
Ping with @username or reply to one of the bot's messages for the bot to respond. It can see the entire reply chain as context.
- Create a Python environment and install the packages in requirements.txt
- Install Ollama (if needed) and a model
- Create an application on the Discord Developer Portal: https://discord.com/developers/applications
- Go to the "Bot" tab on the left
- Make sure "Message Content Intent" is on
- Click on the "Reset Token" button and copy it
- Create a
.envfile, and put inBOT_KEY=TOKEN HERE, as well asMODEL=MODEL HERE - Run the bot server with
python main.py
- Be sure to allow both user install and guild install.
- From there, you can simply use the install link in
Installationtab in settings.
- Responds to messages with a Ollama model
- Sees reply chain as context
- Queues messages when there's a lot coming in at the same time
- Splits long output among several Discord messages when needed due to the message character limit
- Search online for real-time information