mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-05-04 18:43:35 +00:00
Refined README.md
This commit is contained in:
parent
40e9550780
commit
7885d9406a
28
README.md
28
README.md
@ -28,14 +28,28 @@ Assuming that the Twitter handle is @Megabot and the Mastodon account
|
|||||||
is @megabot@botsin.space
|
is @megabot@botsin.space
|
||||||
|
|
||||||
|Switch |Description | Example | Req |
|
|Switch |Description | Example | Req |
|
||||||
|-------|--------------------------------------------------|------------------|-----|
|
|-------|--------------------------------------------------|--------------------|-----|
|
||||||
| -t | twitter account name without '@' | Megabot | Yes |
|
| -t | twitter account name without '@' | `Megabot` | Yes |
|
||||||
| -i | Mastodon instance domain name | botsin.space | Yes |
|
| -i | Mastodon instance domain name | `botsin.space` | Yes |
|
||||||
| -m | Mastodon username | megabot | Yes |
|
| -m | Mastodon username | `megabot` | Yes |
|
||||||
| -p | Mastodon password | my_Sup3r-S4f3*pw | Yes |
|
| -p | Mastodon password | `my_Sup3r-S4f3*pw` | Yes |
|
||||||
| -a | Max. age of tweet to post (in days) | 1 | No |
|
| -a | Max. age of tweet to post (in days) | `1` | No |
|
||||||
| -d | Min. delay before posting new tweet (in minutes) | 15 | No |
|
| -d | Min. delay before posting new tweet (in minutes) | `15` | No |
|
||||||
|
|
||||||
Default max age is 1 day. Decimal values are OK.
|
Default max age is 1 day. Decimal values are OK.
|
||||||
|
|
||||||
Default min delay is 0 minutes.
|
Default min delay is 0 minutes.
|
||||||
|
|
||||||
|
# installation
|
||||||
|
|
||||||
|
Create a folder and copy twoot.py in it.
|
||||||
|
|
||||||
|
Add command line to crontab.
|
||||||
|
|
||||||
|
For example, to run every 15 minutes starting at minute 1 of every hour
|
||||||
|
and process the tweets posted in the last 5 days but at least 15 minutes
|
||||||
|
ago:
|
||||||
|
|
||||||
|
```
|
||||||
|
1-59/15 * * * * /path/to/twoot.py -t Megabot -i botsin.space -m megabot -p my_Sup3r-S4f3*pw -a 5 -d 15
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user