Skip to content

Mastodon bot for posting random blog post from ooh.directory website

Notifications You must be signed in to change notification settings

comatory/ooh-directory-bot

Repository files navigation

ooh-directory-bot

logo for the bot depicting robot's head with surprised look

Mastodon bot which posts a single random post from ooh.directory. See the bot in action on botsin.space instance.

Usage

Pre-requisities

Create .env configuration file next to binary. You can also create this file by copying .env.example to .env file from the source.

This configuration file must contain access_token (obtained from your server's application dashboard) and bot_server_url, which is the URL of the server, e.g. https://botsin.space.

Run

Running the binary will then scrape the site and post to given bot's server URL statuses endpoint. The application keeps track of posted URLs in text file records.txt which will be written in binary's location.

The frequency of posting depends on how often you run the binary, use scheduler such as cron to set it up.

Logs are streamed to stdout so you can pipe them to a file if you want to.

Build

Run make build to obtain binaries for Windows/Linux/macOS. They will be in outputs/ directory.

Test

Run make test to run the test suites.

Development

Run make install to copy pre-commit hook for formatting.

About

Mastodon bot for posting random blog post from ooh.directory website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published