You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1 year ago | |
---|---|---|
.gitignore | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
config.example.json | 1 year ago | |
main.js | 1 year ago | |
package-lock.json | 1 year ago | |
package.json | 1 year 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 usecredentials
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
anddirect
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