Skip to content

gcourtade/mastweet

Repository files navigation

Mastweet


This script cross-posts Mastodon toots to Twitter. The code was adapted from https://github.com/twitterdev/FactualCat-Twitter-Bot

It runs as a cron GitHub Action every 10 min to post your latest Toot containing a specified hashtag to Twitter. Currently it syncs text and media, including ALT text. This action was adapted from https://github.com/klausi/mastodon-twitter-sync/

I made this script for personal use. If you'd like to try it, you need a Twitter Developer account (I am using the Free plan) and to configure the following:

  1. Create a new Github environment with the name "Cron" at https://github.com/<USERNAME>/mastweet/settings/environments/new
  2. For this to work with your accounts, add the corresponding TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET,TWITTER_ACCESS_TOKEN,TWITTER_ACCESS_TOKEN_SECRET,MASTODON_CLIENT_ID, MASTODON_CLIENT_SECRET and MASTODON_ACCESS_TOKEN secrets to the Cron environment.
  3. Add the corresponding MASTODON_INSTANCE_URL (e.g. https://mstdn.social) and MASTODON_HASHTAG (e.g. #sync) variables to the Cron environment.

About

Sync Mastodon to Twitter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published