refactor: replace scootaloo_config with &str in init_db()

This commit is contained in:
VC
2022-04-24 10:02:45 +02:00
parent 13bb6d6f37
commit 26491f146f
3 changed files with 58 additions and 51 deletions

View File

@@ -34,6 +34,8 @@ Then run the command with the `init` subcommand to initiate the DB:
scootaloo init
```
This subcommand is completely idempotent.
Then run the command with the `register` subcommand:
```sh
scootaloo register --host https://m.nintendojo.fr
@@ -76,9 +78,13 @@ SUBCOMMANDS:
Scootaloo does not respect the spam limits imposed by Mastodon: it will make a 429 error if too much Tweets are converted to Toots in a short amount of time (and it will not recover from it). By default, it gets the last 200 tweets from the user timeline (which is a lot!). It is recommended to put a Tweet number into the DB file before copying an old account.
You can can insert it like this:
You can insert that Tweet number, by connecting to the DB you created:
```sh
sqlite3 /var/lib/scootaloo/scootaloo.sqlite
INSERT INTO tweet_to_toot VALUES (1383782580412030982, "");
.quit
```
And inserting the data:
```sql
INSERT INTO tweet_to_toot VALUES (1383782580412030982, "");
```