Syfaro / foxbot

Multiplatform bot for finding furry image sources and more!
https://t.me/FoxBot
MIT License
48 stars 6 forks source link

[feature request] an option to automatically spoiler NSFW materials #122

Open still-flow opened 9 months ago

still-flow commented 9 months ago

this is actually more than a request, as i'd like to try my hand at implementing it myself. overall, it doesn't feel like it should be too difficult since the bot is already aware whether the media is SFW or not, but i figured it's worthwhile to discuss it beforehand

Syfaro commented 9 months ago

Hey, thanks for the feature request and offer to implement it yourself! It's not the best code base (it's grown pretty organically through my own growth too haha) but it does work at least.

I've just merged in the disabling NSFW results PR so hopefully that'll help in understanding how things fit together. I also updated the Telegram library to support spoilering in all the places it should need it.

My biggest question is should it be a per-person setting? It seems more like a group setting to me, unless you only want it to spoiler media it's sending to you over DMs. There's a handful of both per-person and per-group settings to use as examples.

If you have any other questions about where to get started, feel free to ask!