capslock / stable-diffusion-bot

Telegram bot for Stable Diffusion, written in Rust.
https://capslock.github.io/stable-diffusion-bot/
MIT License
14 stars 4 forks source link

How do I remove the buttons /img2img_setting and /text2img_setup? #6

Closed TimmekHW closed 1 year ago

TimmekHW commented 1 year ago

image

any deletion leads to non-compilation of the code

capslock commented 1 year ago

This is set by these lines: https://github.com/capslock/stable-diffusion-bot/blob/main/crates/stable-diffusion-bot/src/bot/mod.rs#L160-L165

If you want to remove all of the buttons, just delete all of those lines. If you want to just remove the settings buttons, those are L161.

TimmekHW commented 1 year ago

thx! it's worked!