Twitter -> Mastodon relay running on Node.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
aria f88edf8ca4 add to readme, fix spacing, add npm start 5 months ago
.gitignore first working version 5 months ago
LICENSE Initial commit 5 months ago
README.md add to readme, fix spacing, add npm start 5 months ago
config.example.json add to readme, fix spacing, add npm start 5 months ago
main.js add to readme, fix spacing, add npm start 5 months ago
package-lock.json first working version 5 months ago
package.json add to readme, fix spacing, add npm start 5 months ago

README.md

twitter-mastodon-relay

Twitter -> Mastodon relay running on Node. No rate limits, entirely based on Nitter instances.

installation

git clone https://git.gay/a/twitter-mastodon-relay.git
cd twitter-mastodon-relay
npm i
cp config.example.json
# edit your config according to your needs here, see below for more info
npm start

configuration

The default config looks like this:

{
  "account": "jack",
  "instance": "https://nitter.pussthecat.org",
  "credentials": {
    "url": "https://mastodon.fake.instance",
    "accessToken": "xxx"
  },
  "spoiler": "Mirrored from {{username}} on Twitter.",
  "visibility": "unlisted",
  "updateInterval": 30000,
  "prev": "",
  "linkOriginal": true
}
  • account is the Twitter account you wish to mirror.
  • instance is the Nitter instance you'd like to use
  • credentials are your Mastodon credentials.
    • url is the URL of the Mastodon instance you are using.
    • accessToken is the access token to the application you made for this.
  • spoiler is the text used to spoiler/add content warnings to your posts.
  • visibility is the visibility of the mirrors. public, unlisted, private and direct are the accepted values.
  • prev is the previous post mirrored by the bot, don't mess with this value.
  • linkOriginal is a boolean value to determine if the toot should mirror posts with or without the link.

roadmap

  • Twitter threads being mirrored properly
  • Videos be mirrored properly
  • Replace Nitter with own scraper

instances