Skip to content

DevEooo/Discord-Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

App preview


About This Project

This project is a Discord chatbot with Python, powered by Google Gemini via google.genai library. It responds to mentions, supports image and PDF attachments, and includes a slash command for bug reports. The bot is built for server assistance and automation while keeping configuration simple through environment variables and a system prompt file.

Tip

Any LLM model is possible and might have additional changes. In this case, I prefer to use Gemini on this one.


App Preview

App preview


App Commands

Mention / Tag based chat

  • Mention the bot in a channel or reply to one of its messages.
  • Example: @Winter What is the weather today?
  • If the bot is replied to, it will include prior conversation context.

Slash command

  • /bug_report — opens a modal that lets users report bugs directly to developers.
  • The command has a 60-second cooldown per user.

Installation

  1. Clone this repository Copy this command into your terminal
     git clone https://github.com/DevEooo/Discord-Chatbot.git

  1. Install prerequisite dependencies To run this app, we need to install some libraries such as: discord.py, google.genai (or any LLM models you preferred) and python-dotenv.
    pip install discord.py google.genai python-dotenv

  1. Setup your .env and prompt.txt files Create .env in project's root containing discord and LLM credential (more on .env_example) and prompt.txt in root as well. You could customize your own chatbot prompt creatively, or modify the chatbot template that I've written in prompt_example.txt!

  1. All set! Your discord chatbot is ready to use! Run this app file by inserting this command:
    python main.py

About

A reliable Discord chatbot project powered with LLM, designed to provide automated assistance for every member on my DIscord server.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages