Go to file
aeris ab52dcd13d Fix Mastodon registration 2018-01-07 20:42:57 +01:00
bin Fix Mastodon registration 2018-01-07 20:42:57 +01:00
lib Fix registration 2018-01-07 18:21:24 +01:00
spec Convert Mastodon usernames to Twitter ones 2018-01-07 16:55:14 +01:00
.gitignore Fix registration 2018-01-07 18:21:24 +01:00
Gemfile Convert Mastodon usernames to Twitter ones 2018-01-07 16:55:14 +01:00
Gemfile.lock Fix Mastodon registration 2018-01-07 20:42:57 +01:00
LICENSE First version 2017-09-03 19:47:13 +02:00
README.md Bump version 2018-01-07 16:59:38 +01:00
config.yml First version 2017-09-03 19:47:13 +02:00
cross-post.gemspec Convert Mastodon usernames to Twitter ones 2018-01-07 16:55:14 +01:00
logo.png First version 2017-09-03 19:47:13 +02:00
mastodon-twitter.service First version 2017-09-03 19:47:13 +02:00

README.md

Mastodon to Twitter bot

This gem uses the Mastodon stream API to replicate your toot on Twitter, handling the "500 to 140 characters limit" conversion.

I advice you to use rbenv to manage your Ruby environment to not mess up your system.

To use it:

  • Clone this repository somewhere (git clone https://git.imirhil.fr/aeris/cross-post/)
  • Install dependencies with Bundler (bundler install)
  • Create a $HOME/.config/cross-post/config.yml configuration file, based on the example available here
  • Register the app on Twitter (bundle exec bin/twitter-register)
    • You can reuse my Twitter app OAuth credentials, or register a new app from scratch here
  • Register the app on Mastodon (bundle exec bin/mastodon-register)
    • You need to change the consumer key and secret to whaveter your instance have for this app. See with your instance admin for real values.
    • If your instance currently doesn't support this app, just remove the consumer part, registration process will create a new app on your instance.
  • Start the replication (bundle exec bin/feed-twitter)
  • Enjoy

If needed, a SystemD unit example is available here