refactor: make everything a little more modular

This commit is contained in:
VC
2022-04-22 13:36:02 +02:00
parent de375b9f28
commit 080218f385
11 changed files with 478 additions and 323 deletions

View File

@@ -7,7 +7,7 @@ It:
If any of the last steps failed, the Toot gets published with the exact same text as the Tweet.
RT are excluded, replies are included.but only the source threads are copied, not the actual replies to other Twitter users.
RT are excluded, replies are included when considered part of a thread (reply to self), not the actual replies to other Twitter users.
# Usage
@@ -16,7 +16,7 @@ First up, create a configuration file (default path is `/usr/local/etc/scootaloo
```toml
[scootaloo]
last_tweet_path="/usr/local/etc/last_tweet" ## file containing the last tweet id received, must be writable
db_path="/var/lib/scootaloo/scootaloo.sqlite" ## file containing the SQLite Tweet corresponding Toot DB, must be writeable
cache_path="/tmp/scootaloo" ## a dir where the temporary files will be download, must be writeable
[twitter]
@@ -29,6 +29,11 @@ access_key="MYACCESSKEY"
access_secret="MYACCESSSECRET"
```
Then run the command with the `init` subcommand to initiate the DB:
```
scootaloo init
```
Then run the command with the `register` subcommand:
```sh
scootaloo register --host https://m.nintendojo.fr