repositorypackage
0.0.0-20250210000616-30ec57c2fe80
Repository: https://github.com/quells/mastobot.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# 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
-
Create a new account (varies by instance)
-
Register application with that instance
$ mastobot app register --instance <instance> --name
- Get an access token for the account
$ mastobot app token renew --instance <instance> --name <appName> --email <email> --password <password>
- Send a test toot
$ mastobot app register --instance <instance> --name <appName> --visibility public 'Hello from mastobot!'
Build
$ devbox run 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 .