From daf0441654f2d4e9f31728b34756c3f3a46d7c2e Mon Sep 17 00:00:00 2001 From: adbenitez Date: Thu, 5 May 2022 18:35:31 -0400 Subject: [PATCH] allow to configure delay between file parts --- app.json | 4 ++++ heroku.sh | 1 + 2 files changed, 5 insertions(+) diff --git a/app.json b/app.json index a68feee..8db9b66 100644 --- a/app.json +++ b/app.json @@ -24,6 +24,10 @@ "description": "The password of the bot's email account", "value": "" } + "DELAY": { + "description": "Time(in seconds) to wait between sent file parts", + "value": "60" + } }, "addons": [ ], diff --git a/heroku.sh b/heroku.sh index 86ded7c..93899a8 100644 --- a/heroku.sh +++ b/heroku.sh @@ -5,6 +5,7 @@ python3 -m simplebot init "$ADDR" "$PASSWORD" python3 -m simplebot -a "$ADDR" set_name "www" python3 -m simplebot -a "$ADDR" db -s "simplebot_downloader/mode" "command" python3 -m simplebot -a "$ADDR" db -s "simplebot_downloader/max_size" "1073741824" # 1GB +python3 -m simplebot -a "$ADDR" db -s "simplebot_downloader/delay" $DELAY python3 -m simplebot -a "$ADDR" db -s "simplebot_translator/filter_enabled" "no" # add the web_comress plugin