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

Improved readability using new lines and code blocks #19

Closed NicKoehler closed 1 year ago

NicKoehler commented 1 year ago

image

capslock commented 1 year ago

Looks good, just one comment if you want to look at it for future work:

The original way this was done was out of laziness; I just wanted to pull the info text in and highlight the seed. However, if you'd like to clean it up a bit more, you can use data directly from the ImgInfo struct to avoid having to re-parse everything with regex. It'll also let us have better control over the keys in the response: I don't think many users care about the Version or ModelHash, for example.