Skip to content

WallpaperinaGigglesworth is a simple discord bot built to generate wallpapers from AI-generated images.

License

Notifications You must be signed in to change notification settings

maciekpoplawski/WallpaperinaGigglesworth

Repository files navigation

alt text

WallpaperinaGigglesworth

WallpaperinaGigglesworth is a simple discord bot built to generate wallpapers from AI-generated images. This bot seamlessly creates high-quality wallpapers on-demand, based on prompts provided by the user. With WallpaperinaGigglesworth, customizing your screen with AI-generated images becomes easy and fun.

Requirements

  • Python 3.10 or newer
  • pip for Python package management

Setup

  1. Python Installation Ensure that you have Python installed on your machine. You can download Python here. We recommend Python 3.10.

  2. Dependencies Installation In your terminal, run the following command within your virtual environment to install all necessary dependencies:

pip install -r requirements.txt
  1. Discord Bot Creation Create a new bot on the Discord Developer Portal. Follow this guide if you need help.

  2. Environment Variables Create a .env file in the root directory of the project and add the following variables:

DISCORD_TOKEN=your-discord-token
AUTOMATIC1111_URL=your-automatic1111-url
  1. Running automatic1111 Automatic1111 SD GUI
  • Run automatic1111 with the --api command-line argument.
  1. Bot Startup Start the bot by running the bot.py file.
python bot.py

Configuration

You can customize the bot to suit your needs by modifying some variables:

  • EXCLUDED_GUILDS: A list of guild names to exclude from the wallpaper limit.
  • MAX_WALLPAPER_GENERATION_PER_DAY: The maximum number of wallpapers that can be generated per day.
  • hr_upscaler: The model used for upscaling. By default, we use "4x-UltraSharp". If you don't have this, set your preferred model (like "SwinIR_4x").

Usage

Once the bot is up and running, using it is super simple!

  1. Set Wallpaper Size Begin by setting the desired wallpaper size. Mention the bot and use the command SET_WALLPAPER_SIZE=widthxheight. For example:
@WallpaperinaGigglesworth SET_WALLPAPER_SIZE=1080x2400
  1. Generate Wallpapers Next, generate wallpapers by providing a prompt as a message after @bot_name. For example:
@WallpaperinaGigglesworth beautiful forest view, highly detailed

And that's it! Your wallpaper will be generated shortly.

License

This project is licensed under the terms of the Do What The F*** You Want (DWTFYW) License.

Enjoy using WallpaperinaGigglesworth and don't forget to share your coolest wallpapers!

About

WallpaperinaGigglesworth is a simple discord bot built to generate wallpapers from AI-generated images.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages