Sign inSign up

alfreddobradi/toot

By alfreddobradi

Updated over 4 years ago

Instant posting to a Mastodon instance

Image
0

319

alfreddobradi/toot repository overview

Toot

Very simple Docker image to post toots to a Mastodon instance.

It's fairly simple to use:

  1. Register an application on your Mastodon instance at https://mastodon.example/settings/applications/new with at least write:statuses scope and urn:ietf:wg:oauth:2.0:oob redirect URI.
  2. After that's done, copy the access token
  3. Run the container: docker run alfreddobradi/toot:latest -e TOOT_INSTANCE_URL=https://mastodon.example -e TOOT_CLIENT_TOKEN=<token from previous step> "<The body of the toot>" (The quotes are important, the program takes the first command line argument, if it's not in quotes it'll just send the first word.)

Environment variables

  • TOOT_INSTANCE_URL - Your instance URL without trailing slashes, e.g. https://mastodon.social
  • TOOT_CLIENT_TOKEN - Your access token
  • TOOT_VISIBILITY - Visibility of the toot, one of public, private or unlisted. Defaults to private and reverts to private if invalid value is given.

Tag summary

Content type

Image

Digest

Size

53.8 MB

Last updated

over 4 years ago

docker pull alfreddobradi/toot