Welcome to the Discord Image Generator Bot! 🎨🚀 This bot brings your creative ideas to life by generating images based on your prompts. Just type a command, and watch your vision come to life in your Discord channel!
- Generate Cool Images: Simply type a command with your text prompt, and the bot will create an image for you.
- See It in Discord: The generated image is sent directly to your channel as an embedded message.
Here’s how you can set up and use the bot:
-
Clone or Download: Get the bot's code from the repository.
git clone https://github.com/rk-vashista/DiscordBot cd DiscordBot
-
Install Requirements: Make sure you have the necessary Python packages. If you don’t have them, install with:
pip install discord.py gradio_client requests
-
Set Up Your Environment: Create a file to store your bot’s token. Name it
.env
and add the following line:BOT_KEY=<your-discord-bot-token>
-
Start the Bot: Run the bot with Python and see it in action!
python bot.py
Once the bot is running, you can use the following command in your Discord server:
$generate <your-prompt>
: Replace<your-prompt>
with your creative idea or description. For example,$generate a sunset over a mountain range
will create an image of a sunset over a mountain range and send it to the channel.
- Be descriptive in your prompts to get the best results.
- The bot sends images directly into the channel, so everyone can see your creations!
- Bot Not Responding? Check if your bot token is correctly set up.
- Image Issues? Make sure the image generation process is working smoothly. You might need to verify your API settings.
This bot is open-source and licensed under the MIT License. Feel free to use and modify it as you wish!
If you have any questions or run into issues, feel free to reach out or check the support page for more info!
Happy creating! 🎨✨