A simple Discord bot powered by local Ollama models for chat interactions.
- Python installed on your machine
- Ollama installed from Ollama's official website
- A Discord account and server
-
Install Ollama and pull the model:
ollama pull hermes3
-
Create Discord Bot:
- Go to Discord Developer Portal
- Click "New Application" and name it
- Go to "Bot" tab, click "Add Bot"
- Copy your bot token
-
Set up the bot:
git clone https://github.com/gnukeith/DiscordChatAI.git cd DiscordChatAI
-
Create a
.env
file:DISCORD_TOKEN=your_bot_token_here
-
Install Python dependencies:
pip install -r requirements.txt
-
Start the bot:
python bot.py
-
Test by mentioning the bot in Discord:
@YourBotName hello
- Bot responds to mentions only
- Conversations are logged in
conversations.log