Kyanoxia / skycord

The unofficial official BlueSky announcement bot for Discord. It's recommended to self-host this!
https://kyanoxia.com/skycord
GNU General Public License v3.0
13 stars 0 forks source link

Feedback: Filter System based on keywords and/or hashtags #3

Closed SalbugVR closed 2 weeks ago

SalbugVR commented 2 weeks ago

Currently, the bot automatically embeds any post to a channel, regardless of context. Implementing a system that filters posts based on keywords or hashtags would be a helpful addition for cases where certain posts should not be auto-posted.

Kyanoxia commented 2 weeks ago

Very possible to do with a regex that scans the post body or the json api response to allow for images as a filter as well, but for something like this I won't worry about polishing it too much as it's for advanced users.

We'll see how engagement here goes before I spend time implementing this. You're more than welcome to create a pull request to implement this as well if you want.

SalbugVR commented 2 weeks ago

You're more than welcome to create a pull request to implement this as well if you want.

I definitely would if I could but I'm much more of a UX / ideas person then I am a programmer. ^^;

Kyanoxia commented 2 weeks ago

You're more than welcome to create a pull request to implement this as well if you want.

I definitely would if I could but I'm much more of an ideas person then I am a programmer. ^^;

Hey that's totally fine, that's why I'm here! I'm getting started on it soon, I'd expect it to be in local testing by the weekend and pushed next week.

Kyanoxia commented 2 weeks ago

Added regex blacklist in commit #aaef7c9, Skycord version 1.3.6. I opted for a regex solution because it's much more versatile than just tags or keywords. The user can set their own filter including arguments such as /i and /g when they reconnect.