command
module
Version:
v0.0.0-...-ff80ccd
Opens a new window with list of versions in this module.
Published: Mar 29, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Newsy Mastodon
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!
How to build
go build .
How to run
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 Mastodon
MASTODON_BASE_URL
, for example https://one.mastodon.server
MASTODON_CLIENT_ID
, you'll get it after creating a new App in your mastodon instance, associated to a mastodon account
MASTODON_CLIENT_SECRET
, you'll get it after creating a new App in your mastodon instance, associated to a mastodon account
MASTODON_ACCESS_TOKEN
, you'll get it after creating a new App in your mastodon instance, associated to a mastodon account
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.