mastobot

command module
v0.0.0-...-8cf2cc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2022 License: MIT Imports: 1 Imported by: 0

README

mastobot

CLI for Mastodon bots.

Application client credentials and access tokens (but not account username/password) are stored in plaintext in a sqlite database. Access to this database file should be protected.

Usage

  1. Create a new account (varies by instance)

  2. Register application with that instance

$ mastobot app register --instance <instance> --name
  1. Get an access token for the account
$ mastobot app token renew --instance <instance> --name <appName> --email <email> --password <password>
  1. Send a test toot
$ mastobot app register --instance <instance> --name <appName> --visibility public 'Hello from mastobot!'

Build

Apple Silicon
$ brew install FiloSottile/musl-cross/musl-cross
$ CC=x86_64-linux-musl-gcc \
  CXX=x86_64-linux-musl-g++ \
  GOARCH=amd64 \
  GOOS=linux \
  CGO_ENABLED=1 \
  go build \
  -ldflags "-s -w -linkmode external -extldflags -static" \
  -o mastobot .

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
app
di

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL