This is a small project that involves a Discord bot integrated with a locally running orca-mini -3B LLM using Ollama. The bot accepts responses via a built-in REST API.
- Go 1.21 or later
- Git
- Ollama
-
Download Go 1.21: You can download it from the official Go website.
-
Clone the project: Use the command
git clone https://github.com/unsuman/discord-bot.git
to clone the project. -
Download and set up Ollama: Follow the instructions on the Ollama website to download and set up Ollama.
-
Run the script: To run the script simply run
chmod +x script.sh
and then./script.sh
. -
Edit the config.json file: Open the
config.json
file in a text editor and replace the placeholder Discord token with your own Discord token. -
Invite the bot to your server: Use the Discord Developer Portal's OAuth2 URL generator to invite the bot to your server.
After you've completed the installation and configuration steps, you can run the bot locally using the command go run main.go
.