Home

Awesome

mirrortter

Build Status Maintainability

🐘 Mirrortter forwards your awesome toots to Twitter from the fediverse

Installation

First, you need to copy .env.exmaple to .env which is production environment variable

cp .env.example .env

Then specify some authorization information, for more preferences, see Configuration section below

+MASTODON_URL=
+MASTODON_ACCESS_TOKEN=
+MASTODON_STREAMING_URL=
+TWITTER_CONSUMER_KEY=
+TWITTER_CONSUMER_SECRET=
+TWITTER_ACCESS_TOKEN=
+TWITTER_ACCESS_TOKEN_SECRET=

Finally, run following commands to start the app:

yarn
yarn start

Configuration

keydescriptiondefault value
MASTODON_URLURL of your Mastodon instance, including https://
MASTODON_STREAMING_URLStreaming API endpoint of your mastodon instance
MASTODON_ACCESS_TOKENAccess token of your Mastodon API
TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET, TWITTER_ACCESS_TOKEN, TWITTER_ACCESS_TOKEN_SECRETAuthroization information of Twitter API
FETCH_INTERVALInterval of polling user's statuses (milliseconds)60000
USE_STREAMINGWhether use streaming API or not, if ture specified, FETCH_INTERVAL will be ignoredtrue
MIRROR_BOOSTSWhether tweet statuses which you boosted in Mastodonfalse
MIRROR_MENTIONSWhether tweet statuses which you mentioned to someone in Mastoodnfalse
MIRROR_SENSITIVEWhether tweet statuses which is sensitivefalse
MIRROR_WITH_URLFlag of tweeting with URL, following values are possible:<br/>always Always tweet with URL<br/>only_media Tweet with URL when media attached<br/>only_sensitive Tweet with URL when status is a senstive content<br/>media_or_sensitive Tweet with URL when media attached and/or sensitive<br/>never Tweet only content"never"
ALLOWED_VISIBILITYSpace-sperated text of allowed visiblity type of Mastodon status, public unlisted private and direct are possible"public unlisted private direct"
ELLIPSISStyle of ellipsis which will be used when omitting content because of text limit issue"..."