newsy-mastodon

command module
v0.0.0-...-ff80ccd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL