mirror of
https://framagit.org/veretcle/scootaloo.git
synced 2025-07-20 17:11:19 +02:00
refactor: replace scootaloo_config with &str in init_db()
This commit is contained in:
12
README.md
12
README.md
@@ -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, "");
|
||||
```
|
||||
|
Reference in New Issue
Block a user