Skip to content

A Discord bot that generates images based on user prompts using the StarryAI API. The bot supports various art styles and image sizes, and can generate multiple images per request.

License

Notifications You must be signed in to change notification settings

itachi1621/Starry-Ai-Discord-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starry Ai Discord Bot

A Discord bot that generates images based on user prompts using the StarryAI API. The bot supports various art styles and image sizes, and can generate multiple images per request.

Features

  • Generate images using various art styles.
  • Choose image sizes and the number of images to generate.
  • Automatically completes options for art styles, sizes, and the number of images.
  • Provides helpful commands.

#Setup Clone the repository:

git clone https://github.com/itachi1621/Starry-Ai-Discord-Bot.git
cd Starry-Ai-Discord-Bot

Install dependencies:

pip install discord aiohttp python-dotenv

or

pip install -r requirements.txt

Create a .env file:

DISCORD_BOT_TOKEN="Your Token"
BOTNAME = "StarryBot"
EMBED_COLOR = "0x0000FF"
STARRY_AI_KEY="Your StarryAI API KEY"
GENERATION_STEPS = 40
MAX_IMAGES = 2

Run the bot:

python Starry_Bot.py

Usage

The bot supports the following commands:

  • /create_pic

Generates an image based on the provided prompt.

  • Prompt: The text prompt for image generation.

  • Style: The art style for the image.

  • Size: (Optional) The size of the image (square, landscape, portrait, wide).

  • Number of Images: (Optional) The number of images to generate.

  • /help Displays the help message with a list of available commands.

Example Command

/create_pic prompt="A sunset over a mountain" style="fantasy" size="landscape" number_of_images="2"

Response

The bot will generate and send images based on the provided prompt and options.

Contributing

Feel free to open issues or submit pull requests if you have suggestions or improvements.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

Special thanks to the creators of the StarryAI API for providing an excellent image generation service.

About

A Discord bot that generates images based on user prompts using the StarryAI API. The bot supports various art styles and image sizes, and can generate multiple images per request.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages