A Mastodon Bot that toots the top 5 stories from HackerNews, at the top of every hour.
There is a live instance of this bot (hosted on https://fly.io/) publishing to this account: https://framapiaf.org/@newsycombinator - check it out!
go build .
You need to export the following environment variables:
HN_NUMBER_OF_STORIES
, for example 3 - the number of top stories you want to publish to MastodonMASTODON_BASE_URL
, for example https://one.mastodon.serverMASTODON_CLIENT_ID
, you'll get it after creating a new App in your mastodon instance, associated to a mastodon accountMASTODON_CLIENT_SECRET
, you'll get it after creating a new App in your mastodon instance, associated to a mastodon accountMASTODON_ACCESS_TOKEN
, you'll get it after creating a new App in your mastodon instance, associated to a mastodon account