Skip to content

Discord Image Generator Bot: A Python-based bot that generates images from user prompts and sends them directly to Discord channels. Features include image generation from text prompts, easy setup and installation, and embedded image delivery in Discord.

Notifications You must be signed in to change notification settings

rk-vashista/DiscordBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Discord Image Generator Bot

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!

🎉 Features

  • 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.

📦 Getting Started

Here’s how you can set up and use the bot:

  1. Clone or Download: Get the bot's code from the repository.

    git clone https://github.com/rk-vashista/DiscordBot
    cd DiscordBot
  2. 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
  3. 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>
    
  4. Start the Bot: Run the bot with Python and see it in action!

    python bot.py

🤖 Commands

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.

🌟 Tips

  • Be descriptive in your prompts to get the best results.
  • The bot sends images directly into the channel, so everyone can see your creations!

🛠️ Troubleshooting

  • 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.

📜 License

This bot is open-source and licensed under the MIT License. Feel free to use and modify it as you wish!

🤔 Need Help?

If you have any questions or run into issues, feel free to reach out or check the support page for more info!

Happy creating! 🎨✨

About

Discord Image Generator Bot: A Python-based bot that generates images from user prompts and sends them directly to Discord channels. Features include image generation from text prompts, easy setup and installation, and embedded image delivery in Discord.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages