XaiJu
db0
db0

patreon


Mastodon Bot

I have now well and truly switched to Mastodon as my primary microblogging platform. (You can find the official stablehorde account here btw), but as I was playing with it I throught this would be a great place to deploy a Stable Horde bot, then one thing led to another, and well...here we go!

The stablehorde_generator will monitor its notifications and if you mention it using the magic words "draw for me" and any text, it will convert it into a prompt and send it to stable diffusion to generate the image with it.

But I wasn't quite satisfied with it, as people keep posting midjourney art which by default looks pretty, as midjourney has put a lot of guidance to their model. Its a bit more limited when trying to create anything, but it always looks nice.

So I wanted to provide a way to guide our bot likewise, by being able to specify a simple "style" and it will append text to the prompt to help make it interesting, regardless of simplicity.

But as I was building that, I realized I could expand this even further. I wasn't quite satisfied that I could just request 4 images in the same style. I wanted to be surprised as well.

So the next step was to group styles in logical categories and then allow the bot to be given one category and then just select 4 styles from that category to use at random.

The results are pretty sweet

The bot is also using the curated styles we have in the stable horde discord bot so any good new stuff will now improve both bots at the same time. In fact, I have put all the styles in their own repository so if you so wish, you can onboard them on your own tools and clients and benefit from them as well!

It also has a few other features and interesting use cases. For example, if you mention the bot and the magic words in a thread, it will reply properly in that thread, so you can use it as part of your conversation natively. Also if you put extra tags into the request, then the bot will add the same tags into the reply with the images, allowing anyone who is following this tag to see them.

I have a lot more plans for this bot. For example allowing mastodon accounts to "login" to it via their own API key in order to get faster generations, the ability to define personal styles etc!provide their own

Stay tuned


More Creators