Releases: notarock/technews-bot
Releases · notarock/technews-bot
v0.4.0
Bugfix: Do not repeatedly send hackernews discussions posts
Skip articles without a direct link Sometimes, an article on Hackernews can be a discussion or a hiring post. In that case, the article's link is empty, which means that we can't index it properly to avoid sending it repeatedly. This fix simply skips any post that does not contains a link to an outside source. We simply ignore hiring, discussion, etc. As those are not really "Tech News" worthy anyway.
v0.3.1: DB Refactor
Database refactor, you will need to start fresh
I was not very happy with how the guilds were saved in the DB. It meant that if there was 2 channel in one guild that where bound, we would keep trap of 2 copy of the guild.
Now, channel and it's subjects are bound to an array of combinations that are held in one guild within the database. This allows to have different subjects in different channels.
Also, the in-memory article store was changed to use the DB in order to limit memory usage as the bot runs for months at a time.
v0.2.0
What's Changed
- !technews addsubject "subject" by @ThomasCardin in #2
Full Changelog: v0.1.0...v0.2.0
Chat commands and multi-guild support
New commands, with prefix !technews
:
help
: Print man pagebind
: Link technews-bot to the channel where news article should be sent to
Behind the scenes:
- MongoDB integration to same discord guilds and preferences (Allow to use technews-bot with more than a hard-coded guild)
Add support for news aggregator https://lobste.rs
Features
- Added support for the technews aggregator https://lobste.rs
- No API available, parse HTML instead
- Introduces article TAGS
- A more complete README
Technical stuff
- News articles are parsed into a common
Article
type for easier aggregation from multiple sources. - A bit of refactoring.
- Wait 3 secondes between discord messages as to not get rate limited.
Initial release
- Pull most recent articles from Hackernews and filter them based on hardcoded center of interests
- Periodically send said articles to a discord channel, configured via env vars
- Should not repeatly send the same articles if already sent
v0.0.0-3
v0.0.0-2
Testing github actions
v0.0.0-1 Github workflow to release image on tag