mirror of
https://framagit.org/veretcle/scootaloo.git
synced 2025-07-20 17:11:19 +02:00
feature: state is held into a sqlite db
This commit is contained in:
19
README.md
19
README.md
@@ -30,7 +30,7 @@ access_secret="MYACCESSSECRET"
|
||||
```
|
||||
|
||||
Then run the command with the `init` subcommand to initiate the DB:
|
||||
```
|
||||
```sh
|
||||
scootaloo init
|
||||
```
|
||||
|
||||
@@ -52,7 +52,9 @@ token = "MYTOKEN"
|
||||
|
||||
You can then run the application via `cron` for example. Here is the generic usage:
|
||||
|
||||
```
|
||||
```sh
|
||||
A Twitter to Mastodon bot
|
||||
|
||||
USAGE:
|
||||
scootaloo [OPTIONS] [SUBCOMMAND]
|
||||
|
||||
@@ -62,20 +64,21 @@ FLAGS:
|
||||
|
||||
OPTIONS:
|
||||
-c, --config <CONFIG_FILE> TOML config file for scootaloo (default /usr/local/etc/scootaloo.toml)
|
||||
-l, --loglevel <LOGLEVEL> Log level. Valid values are: Off, Warn, Error, Info, Debug
|
||||
|
||||
SUBCOMMANDS:
|
||||
help Prints this message or the help of the given subcommand(s)
|
||||
init Command to init Scootaloo DB
|
||||
register Command to register to a Mastodon Instance
|
||||
```
|
||||
|
||||
# Quirks
|
||||
|
||||
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 `last_tweet` file before copying an old account.
|
||||
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 do that with a command like:
|
||||
You can can insert it like this:
|
||||
```sh
|
||||
echo -n '8189881949849' > last_tweet
|
||||
sqlite3 /var/lib/scootaloo/scootaloo.sqlite
|
||||
INSERT INTO tweet_to_toot VALUES (1383782580412030982, "");
|
||||
.quit
|
||||
```
|
||||
|
||||
**This file should only contain the last tweet ID without any other char (no EOL or new line).**
|
||||
|
||||
|
Reference in New Issue
Block a user