https://github.com/HalCanary/mastodoner
programs for talking to a mastodon server.
https://github.com/HalCanary/mastodoner
mastodon-client
Last synced: 2 months ago
JSON representation
programs for talking to a mastodon server.
- Host: GitHub
- URL: https://github.com/HalCanary/mastodoner
- Owner: HalCanary
- License: mit
- Created: 2022-11-16T15:48:39.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-03T16:14:00.000Z (10 months ago)
- Last Synced: 2024-12-03T17:25:01.326Z (10 months ago)
- Topics: mastodon-client
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# mastodoner
programs for talking to a mastodon server.
See [LICENSE.md](LICENSE.md).
* * *
## To Use
1. Sync this repo:
git clone https://github.com/HalCanary/mastodoner.git
cd mastodoner/2. Install `go` version ≥ 1.19 ().
3. Execute:
go build -o . ./...
4. Create an access token by visiting this url:
https://YOUR_HOSTNAME_HERE/settings/applications
Grant the following access:
* `read:accounts`
* `read:search`
* `write:follows`
* `write:statuses`5. Create a config file `~/mastodon.json` that looks like:
{
"AccessToken": "YOUR_ACCESS_TOKEN HERE",
"Language": "en",
"Host": "YOUR_HOSTNAME_HERE",
"MaximumStatusLength": 500
}6. Write your status in a text file, e.g. `STATUS.txt`
7. Update your status:
./poststatus < STATUS.txt
or
./poststatus -spoiler 'Content Warning: US politics' < STATUS.txt