jcolag / tool-trunk

Tools for (John's) Mastodon workflow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mastodon Tool Trunk

Tools for (John's) Mastodon workflow

This repository contains a handful of scripts designed to automate various tasks related to Mastodon, the federated collection of social networking websites that form a significant part of the so-called Fediverse. I use Mastodon as my primary social network, and part of that use includes some mix of automated and pre-scheduled posts.

Currently, we have two scripts.

latest.sh

This pulls activity for the account (specified in the configuration file), specifically so that I can fill the URLs into my social media roundup blog posts without needing to manually visit Mastodon.

schedule.rb

In progress. As of now, this mostly works, but sometimes needs some help.

However, it schedules a Mastodon post/toot, complete with optional image, content warning, and future schedule time. This also takes information from the configuration file, but has command-line options on top of that, specific to the post. Call the following for a list of such options.

ruby schedule.rb --help

Its big problems, at this time, come from error handling, especially in downloading images.

parse.rb

Consider this the centerpiece of the repository, at least at this time.

This script parses one of my "social media roundup" blog posts---the parts written before the social media posts actually go out, for anything that I pre-schedule---then builds and executes the schedule.rb command to get that post/toot out at the proper time.

About

Tools for (John's) Mastodon workflow

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 40.8%Language:Ruby 37.9%Language:CSS 10.5%Language:Shell 6.6%Language:HTML 4.2%