Skip to content

Drepheus/Discord-AI-Bots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord AI Bots

This project consolidates multiple Discord bots using the Gemini API into a single, modular Python application.

Setup

  1. Copy .env.example to .env and fill in your Discord bot tokens and Gemini API key.
  2. Install dependencies:
    pip install -r requirements.txt
    
  3. Run the project:
    python main.py
    

Structure

  • main.py: Central runner for all bots.
  • cogs/: Contains each bot's logic as a separate Cog.
  • .env.example: Template for required environment variables.
  • requirements.txt: Python dependencies.
  • .gitignore: Ignores Python/VSCode/secret files.

Deployment on Render.com

  1. Push your code to a GitHub repository.
  2. Go to Render.com and create a free account (or log in).
  3. Click "New Web Service" and connect your GitHub repo.
  4. For the build command, use:
    pip install -r requirements.txt
    
    For the start command, use:
    python main.py
    
  5. Add all required environment variables in the Render dashboard (see .env.example for the full list). Do not upload your .env file.
  6. Click "Create Web Service". Render will build and deploy your bot. It will restart automatically if it crashes or if you push new code.

Note:

  • Render's free plan will sleep after 15 minutes of inactivity. For 24/7 uptime, consider a paid plan.
  • Do not commit your .env file or any secrets to version control. Use Render's environment variable settings instead.

About

Bots using Gemini APIs and RAG

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages