AndBobsYourUncle / stable-diffusion-discord-bot

A Discord bot, written in Go, that interfaces with the Automatic 1111's API interface.
MIT License
128 stars 35 forks source link

Setting GuildId is not locking down the bot to a specific Guild/Server #12

Open chrisbward opened 1 year ago

chrisbward commented 1 year ago

Hi,

Just had a bot added to a server that wasn't in the guild command flag, and it still seemed to work?

I checked the code but couldn't find anywhere that validates this flag... thanks!

drusepth commented 1 year ago

I've noticed this as well. Doesn't seem to be any scoping to a specific guild ID even if one is passed. And if you run two instances of the bot, each with a different guild ID, they both respond to both guilds' /imagine calls, resulting in 8x images generated (but only being able to upscale/variant the first four).