Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Commit

Permalink
allow to configure delay between file parts
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed May 5, 2022
1 parent 9c9a913 commit daf0441
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
],
Expand Down
1 change: 1 addition & 0 deletions heroku.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit daf0441

Please sign in to comment.