This repository hosts source code for a Discord bot using various Google Cloud AI-related products.
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.
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.
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.