This Discord bot uses Google Generative AI and Replicate AI to generate text and images based on user prompts.
- Clone this repository to your local machine.
- Install the required dependencies by running:
pip install -r requirements.txt
- Create a
.env
file in the project directory and add your Discord bot token and Google API key:DISCORD_TOKEN=your_discord_token_here GOOGLE_API_KEY=your_google_api_key_here
- Run the bot script:
python bot.py
To generate text, use the /chat
command followed by your prompt. For example:
/chat Tell me a joke.
To generate images, use the /image
command followed by your prompt. For example:
/image Landscape with mountains and rivers.
- discord.py: Python wrapper for the Discord API.
- dotenv: Library for loading environment variables from a
.env
file. - replicate: Python package for interacting with the Replicate AI API.
- google.generativeai: Python package for interacting with the Google Generative AI API.