Skip to content

A discord bot that allows users to easily view the prompts of images that other users send

License

Notifications You must be signed in to change notification settings

dogarrowtype/PromptInspectorBot

 
 

Repository files navigation

Forked from https://github.com/sALTaccount/PromptInspectorBot

Prompt Inspector 🔎

Inspect prompts 🔎 from images uploaded to discord

Functionality

This Discord bot reacts to any image with generation metadata from Automatic1111's WebUI and ComfyUI. If generation metadata is detected, a magnifying glass react is added to the image. If the user clicks the magnifying glass, they are sent a DM with the image generation information.

Two context menu apps are provided. One sends an ephemeral response in the channel. The other activates the emoji reaction (🔎) DM based response (useful for channels the bot isn't watching).

Setup

  1. Clone the repository
  2. Enter the directory
  3. Create a venv with python3 -m venv ./venv
  4. Install the dependencies with pip3 install -r requirements.txt
  5. Create a Discord bot and invite it to your server
  6. Enable the Message Content Intent in the Discord developer portal
  7. Enable the Server Members Intent in the Discord developer portal
  8. Create a file named ".env" in the root directory of the project
  9. Set BOT_TOKEN=<your discord bot token> in the .env file
  10. Copy the config.example.toml to config.toml
  11. Add the channel IDs for channels you want the bot to watch, and set the settings you want in the config.toml file
  12. Run the bot with python3 PromptInspector.py

Examples

Example 1 Example 2

About

A discord bot that allows users to easily view the prompts of images that other users send

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%