Giter Site home page Giter Site logo

blepping / promptinspectorbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dogarrowtype/promptinspectorbot

0.0 0.0 0.0 278 KB

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

License: GNU General Public License v3.0

Python 100.00%

promptinspectorbot's Introduction

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

promptinspectorbot's People

Contributors

blepping avatar bwm-nubby avatar dogarrowtype avatar hollowstrawberry avatar nocrypt avatar saltaccount avatar tsukreya avatar velvettoroyashi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.