Download Latest Version Various bug fixes.zip (145.6 kB)
Email in envelope

Get an email when there's a new version of discord_feedbot

Home / v2.0.0
Name Modified Size InfoDownloads / Week
Parent folder
OMG FILTERS, Cool URL stuff.tar.gz 2016-09-26 108.5 kB
OMG FILTERS, Cool URL stuff.zip 2016-09-26 109.9 kB
README.md 2016-09-26 1.5 kB
Totals: 3 Items   220.0 kB 0

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.

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
Source: README.md, updated 2016-09-26