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

Commit

Permalink
allow to set bot name
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Jul 17, 2022
1 parent 0babeb2 commit cb0d4b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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": ""
},
"BOT_NAME": {
"description": "The bot's display name",
"value": "www"
},
"DELAY": {
"description": "Time(in seconds) to wait between sent file parts",
"value": "60"
Expand Down
2 changes: 1 addition & 1 deletion heroku.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# configure the bot
python3 -m simplebot init "$ADDR" "$PASSWORD"
python3 -m simplebot -a "$ADDR" set_name "www"
python3 -m simplebot -a "$ADDR" set_name "$BOT_NAME"
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
Expand Down

0 comments on commit cb0d4b3

Please sign in to comment.