Skip to content

GoogleCloudPlatform/discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GenAI Discord Bot

This repository hosts source code for a Discord bot using various Google Cloud AI-related products.

Getting started

To run the bot, you will need access to Vertex AI API or an API key from Google AI Studio.

If you decide to you the AI Studio API Key, set it as an environmental variable with export GEMINI_API_KEY=your_key_here. The bot will try to use this variable to authenticate with the API. In case this variable is not set, the AI API calls will be handled by Vertex AI using the Application Default Credentials.

The bot also requires you to set DISCORD_BOT_TOKEN environmental variable to contain the secret token generated for your bot in the Discord Developer portal. Learn more about setting up your first application/bot from Discord documentation.

Vertex AI API Terms of Service

To execute the code of the bot, you need to have access to Vertex AI API. That's possible only once you accept Terms of Service. Please remember about those terms if you expose the bot to other users on your Discord server.

Google AI Studio Terms of Service

By using the AI Studio API key, you accept the Gemini API Terms of Service. Please remember about those terms if you expose the bot to other users on your Discord server.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages