- Edgy tech bro, discord bot, and a friend to all.
- Run it locally blazingly fast on your M1 Max or equivalent.
- Only 100 lines of python code.
This is a discord bot that is meant to be hosted locally from your PC.
It leverages the discord.py library to interact with the discord API.
It also uses the langchain library together with Ollama to connect local Chat-based LLMS to the discord bot. Instead of this procedure, you could also directly utilize the RESTAPI of other LLMs locally or remotely.
- Clone the repository
- Install the requirements.txt
- Create a
.envfile in the root directory of the project, based on the.env.examplefile - Create a discord bot and add it to your server, give it all bot permissions as specified in this video by a man with a fancy mustache.
- Install the Ollama app, and create a local chat-based LLM. You can find the instructions here, I have included my Modelfile for inspiration.
- Run ollama by simply opening the app.
- Run the bot with
python main.py - You should be good to go!,
@<bot>to get the bot's attention in the channel.
