Skip to content

Robbierayrob/nlpxmlb-discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Gemini Bot Setup

Create Virtual Environment

Create a virtual environment in the project directory:

python -m venv venv

Activate Virtual Environment

On Windows

source venv/Scripts/activate

On macOS or Linux

source venv/bin/activate

Install Requirements

Install the project dependencies:

pip install -r requirements.txt

Configure Environment Variables

Create a .env file in the project directory and add the following environment variables:

GOOGLE_API_KEY=YOUR_GOOGLE_API_KEY
DISCORD_TOKEN=YOUR_DISCORD_TOKEN
ALLOWED_SERVER_ID=YOUR_SERVER_ID
ALLOWED_CHANNELS=YOUR_CHANNEL_NAMES

Replace YOUR_GOOGLE_API_KEY with your actual Google API key.

Replace YOUR_DISCORD_TOKEN with your actual Discord token.

Replace YOUR_SERVER_ID with the ID of the server you want the bot to join.

Replace YOUR_CHANNEL_NAMES with a comma-separated list of channel names you want the bot to join.

For example:

GOOGLE_API_KEY=YOUR_GOOGLE_API_KEY
DISCORD_TOKEN=YOUR_DISCORD_TOKEN
ALLOWED_SERVER_ID=1234567890
ALLOWED_CHANNELS=general,announcements

Run the Bot

Start the Discord Gemini bot:

python discord_gemini_bot.py

Enjoy! 🤖

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages