Use this script to quickly send a toot to your favorite mastadon instance.
Download or clone this git repo to a folder on your computer.
- Download and unzip
- Clone with:
git clone git@github.com:comster/quick_toot.git
Open config.js and set the following values:
mastadon_api_url
: the URL of your mastadon instance API endpoint like "https://mastodon.social/api/v1/"mastadon_access_token
: the app access token for the account you want to toot as (see below)toot_status
: the default toot status text to send
- Go to your Settings > Development > New Application page: https://noagendasocial.com/settings/applications/new
- Enter an Application Name
- Click Submit
- Click on your new application name
- Copy the value of "Your access token"
- Paste it into your config.js as the value of
mastadon_access_token
Examples of how to run the script:
node index.js
node index.js 'This is my toot!'
node index.js $'My multi-line toot\nhas swagger!'
node index.js $'My cat' cat.png
npm start
npm start "Toot toot!"
npm start $'My multi-line toot\nhas swagger!'
npm start $'My cat' cat.png
You might want to run this by using a hotkey.