branches: master
Clone
clone: git://shithub.us/julienxx/masto9 gits://shithub.us/julienxx/masto9
push: hjgit://shithub.us/julienxx/masto9
patches to: [email protected]
Last commit
7029129c
– Julien Blanchard <
[email protected]>
authored
on 2024/11/13 10:22
Respect toots and notifications limits, handle snac edge case with favourites
About
# masto9
A simple mastodon client for 9front.
## Usage
`masto9 DOMAIN [COMMAND] [DATA]`
Available commands:
- `home` to view your notifications. Abbrev `h`
- `toot 'TEXT'` to post a new textual toot. Abbrev `t`
- `tootwithfile ['TEXT'] FILEPATH` to post a new toot with a file and optional text. . Abbrev `tf`
- `reply ID` to reply to a toot. Abbrev `r`
- `notifications` to view your notifications. Abbrev `n`
- `mentions` to view your mentions. Abbrev `m`
- `fav|unfav|boost|unboost ID` to act on a toot. Abbrev `f|uf|b|ub`
- `more ID` to view the timeline starting from a toot
- `debug ID` to view a toot JSON
if no COMMAND is provided masto9 defaults to `home`.
### Installation
Clone the repo, `mk install`.
### Token
You will need to create a token for your account https://docs.joinmastodon.org/client/token/ and add it to factotum:
```
echo 'key proto=pass service=mastodon server=INSTANCE_HOSTNAME !password=TOKEN user=USERNAME' > /mnt/factotum/ctl
```
### Plumbing rules
For convenience add some plumb rules to `$home/lib/plumbing` right before `include basic` line:
```
type is text
data matches 'Favorite\[([0-9]+)\]'
plumb to mastodon
plumb client window masto9 DOMAIN fav $1 && read
type is text
data matches 'Boost\[([0-9]+)\]'
plumb to mastodon
plumb client window masto9 DOMAIN boost $1 && read
type is text
data matches 'Reply\[([0-9]+)\]'
plumb to mastodon
plumb client window masto9 DOMAIN reply $1
```