From cb0d4b38d5c7b6d8e8888ee077fb7f298a592a2c Mon Sep 17 00:00:00 2001 From: adbenitez Date: Sun, 17 Jul 2022 03:03:23 -0400 Subject: [PATCH] allow to set bot name --- app.json | 4 ++++ heroku.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app.json b/app.json index feb8fe8..6943ea8 100644 --- a/app.json +++ b/app.json @@ -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" diff --git a/heroku.sh b/heroku.sh index 93899a8..8591f81 100644 --- a/heroku.sh +++ b/heroku.sh @@ -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