foxbot
foxbot copied to clipboard
[feature request] an option to automatically spoiler NSFW materials
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
- i want to focus on Telegram for now. fwict the bot uses your own library which isn't aware of spoilering media -- however, the required supporting changes seem to be really simple, and i could PR what those changes look like to me
- my idea is to add a per-person setting that could be changed in DMs with the bot
- there's a PR #116 by you that seems to be closely related to my proposal, so it probably wouldn't be wise for me to start working on a PR here from scratch. moreover, this project is fairly more complex than what i'm experienced with, so i'd like to hear your thoughts
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!