Releases: freiheit/discord_feedbot
Crash bug fix
Ooops... Last release has a bug that prevents it from running... Fixed.
OMG FILTERS, Cool URL stuff
Release Highlights:
- Filters
- Relative URLs
- Block Discord's link previews
- Minor code cleanup stuff nobody cares about
- Bug that keeps the bot from running at all (run next release instead)
Filters aren't super-well tested yet and there's a possibility of some of these changes causing problems with some setups, so big version jump there...
OMG FILTERS!!!
Added the ability to filter items by comparing a field to a regular expression.
- All these can be set for a feed, or on a per-channel basis
- "filter" is a regex that an item has to match to get posted
- "filter_exclude" is a regex that an item must not match to get posted
- "filter_field" is the field the regular expression is run against, and defaults to "title".
filter and filter_exclude are exclusive (pick one, you can't have both). If you need the functionality of both, it should be possible to use (?!...)
stuff (zero-width negative assertions) to get it in a single regex.
Relative URLs
Some feeds contain a relative "link" field like /something/
without http/https at the start.
This change attempts to handle that case, assuming that the links are relative to the URL of the feed itself.
This is needed for github release feeds to work.
Blocking link previews
You know that thing where you post a link and Discord follows the link and shows you a teaser and stuff? Sometimes you don't want that.
Now, in the .ini file, you can wrap the link in <>
and the link won't get a preview.
fields = **title**,*published*,<link>,summary
Fixes!
Testing and use uncovered some problems. Fixed some stuff myself and got some fixes from others, too.
I also added a Wiki to the github page. So far it's just about how to get my Elite: Dangerous focused instance of this bot on your server.
I think the next release will add the ability to filter out items based on regular expression in the title. Hopefully I'll have that coming soon.
- Improved requirements.txt so that people using it get better results.
- Fixed the "max_age" stuff to actually work right.
- Made the avatar setting optional.
- Added YouTube feed stuff to the examples.
- Various really minor fixes.
Icon fun
Feature complete
There are some features I'd like to add (in Issues), but I believe this is now feature complete and should work well for most users.