Skip to content

About

A powerful Discord chatbot powered by the blazing-fast Ollama API. Based on the original project by mishl-dev.

Topics

Resources

Code of conduct

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Discord AI Chatbot

Features And Commands

Features (Click to expand)
  • Free LLM Access: Uses a free language model to provide AI-powered responses at no cost.
  • Secure Configuration: Protects sensitive credentials by storing them in environment variables instead of hardcoding them.
  • Hybrid Command System: Supports !remember commands and natural-language messaging for flexible interaction.
  • Persistent Memory: Remembers important information across conversations for future reference.
Commands (Click to expand)
  • !Remember: Lets users save information for the bot to remember later.
  • !Human: Makes the bot act like a human and believe it's human.
  • !Robot: Makes the bot act like a robot and know it's an AI.

Setup

Step 1. Download the repository

Download or clone the repository from GitHub.

Step 2. Run Setup

Double-click Setup.bat. This automatically installs Ollama and downloads the required AI model. If you want to use a different model, open a terminal and run ollama pull (e.g. ollama pull llama3.2:3b), then double-click Setup.bat again. It will detect the new model and automatically update your .env.

Step 3. Create a Discord bot

Go to the Discord Developer Portal and create a new application.

  1. Create a new application.
  2. Navigate to the Bot section.
  3. Create your bot and copy its token.
  4. Enable the required intents.
  5. Invite your bot to your Discord server.

Step 4. Configure your bot token

Open the .env file and paste your Discord bot token.

DISCORD_TOKEN=YOUR_DISCORD_BOT_TOKEN

Step 5. Start the bot

Double-click Start.bat to launch your Discord AI chatbot.


Using Docker to run

Docker

  • Have a working bot token
  • Follow up to step 4

Install docker-compose on a Linux machine:

For Debian-based distributions (such as Ubuntu):

apt update -y; sudo apt upgrade -y; sudo apt autoremove -y; sudo apt install docker-compose -y

About

A powerful Discord chatbot powered by the blazing-fast Ollama API. Based on the original project by mishl-dev.

Topics

Resources

Code of conduct

Stars

1 star

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages