Skip to content

comster/quick_toot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick toot!

Use this script to quickly send a toot to your favorite mastadon instance.

Requires

Install

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

Configure

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

How to obtain your mastadon account access token

  • 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

Run

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published