CLI script for updating bio at Twitter and GitHub in one go.
Unfortunately a bit tricky to set up.
All the services are optional. If you don't add proper keys to .env
file, it will be skipped in runtime.
- Create Twitter Developer portal app https://developer.twitter.com/en/portal/dashboard.
- Save consumer key and consumer secret to
.env
file asTWITTER_CONSUMER_KEY
andTWITTER_CONSUMER_SECRET
. - Set up authentication in order to give your app read/write permissions (default is read only). You can put
http://localhost:3000/callback
as callback URL andhttps://example.org
as the website.
- Create an access token https://github.com/settings/tokens?type=beta and save it to
.env
asGITHUB_BEARER_TOKEN
.
- Create app in settings
https://YOUR_INSTANCE/settings/applications
. Onlywrite:accounts
permission is needed, not even anyread
. - Save
Your access token
and add it asMASTODON_BEARER_TOKEN
to.env
.
source .env
node index.mjs
You will be asked to visit Twitter authentication page where you will get PIN to paste into the app.
No API with this feature.