Open-Source discord AI chatbot using Ollama, based on the El Chapo bot from the WSE Discord Server.
First, create the model. (Make sure you have llama2-uncensored installed already)
ollama create chapo -f ./Modelfile
Then, create the discord bot in the Discord Dev Portal
Make sure you enable the Message Content Intent
Then, open config.py
and change the token placeholder to your discord bot token.
Once this is all done, run python3 -m pip install -r requirements.txt
.
Then, finally, run python3 main.py
to run your El Chapo bot.
You can message chapo by typing his name into the message, like this:
Chapo will respond in 10-15 seconds depending on your CPU power.