A Discord Bot that utilizes the Ollama API.
-
Make sure you have Ollama installed on your machine: https://ollama.com/download
-
Clone the Repository: Begin by cloning this repository to your local machine.
git clone https://github.com/luigi052005/Ollama-Discord-bot
- Navigate to the Directory: Move into the directory containing the cloned repository.
cd Ollama-Discord-Bot
- Install Dependencies: To install the necessary dependencies, execute the following command in your terminal:
pip install -r requirements.txt
-
Configuration:
- Rename
config
toconfig.py
- Open
config.py
and enter your Discord bot token.
# config.py.py DISCORD_TOKEN = "Your_Discord_Token"
- Make sure your bot has the following permissions:
- Rename
-
Run the Bot: Start the bot by executing the following command:
python discord_bot.py
Now your Ollama Discord Bot should be up and running, ready to enhance your Discord server experience! Remember to mention the bot directly when you want to engage in conversation.