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.
- Python 3.10 or newer
- pip for Python package management
-
Python Installation Ensure that you have Python installed on your machine. You can download Python here. We recommend Python 3.10.
-
Dependencies Installation In your terminal, run the following command within your virtual environment to install all necessary dependencies:
pip install -r requirements.txt
-
Discord Bot Creation Create a new bot on the Discord Developer Portal. Follow this guide if you need help.
-
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
- Running automatic1111 Automatic1111 SD GUI
- Run automatic1111 with the
--api
command-line argument.
- Bot Startup
Start the bot by running the
bot.py
file.
python bot.py
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").
Once the bot is up and running, using it is super simple!
- 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
- 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.
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!