File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 21
21
AUTH_CHATS : ${{ secrets.AUTH_CHATS }}
22
22
HTTP_USER : ${{ secrets.HTTP_USER }}
23
23
HTTP_PASS : ${{ secrets.HTTP_PASS }}
24
+ DEFAULT_DEST : ${{ secrets.DEFAULT_DEST }}
24
25
run : |
25
26
cd heroku
26
27
bash deploy.sh
Original file line number Diff line number Diff line change 99
99
| AUTH_CHATS | Authorized Chats | 'UserA','UserB' | True | Telegram Username's/User ID's Should be Given and Should be in Single Quotes |
100
100
| HTTP_USER | Username | user | False | HTTP Basic auth adds an Extra Layer security for your app (recommended) |
101
101
| HTTP_PASS | Password | pass | False | HTTP Basic auth adds an Extra Layer security for your app (recommended) |
102
+ | DEFAULT_DEST | Folder ID | 0ADXXXXXXXMUk9PVA | False | Default Destination G-Drive folder ID (TeamDrive ID Recommended) |
102
103
103
104
### How to make the App Never Sleep?
104
105
1. Setup a [CronJob](https://console.cron-job.org) to Make the heroku app never sleep
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ if [[ -n "$APP_SUC" ]]; then
109
109
if [[ -n " $HTTP_USER " && -n " $HTTP_PASS " ]]; then
110
110
heroku config:set -a " $HEROKU_APP " HTTP_USER=" $HTTP_USER " HTTP_PASS=" $HTTP_PASS "
111
111
else
112
- echo " No AUTH Variables provided, HTTP Basic Auth Disabled"
112
+ echo " WARNING : No AUTH Variables provided, HTTP Basic Auth Disabled"
113
113
fi
114
114
115
115
# Config File
@@ -120,6 +120,13 @@ if [[ -n "$APP_SUC" ]]; then
120
120
echo " Bot Token, Auth Chats not Provided Exiting , For Info Read Readme"
121
121
exit 2
122
122
fi
123
+
124
+ if [[ -n " $DEFAULT_DEST " ]]; then
125
+ heroku config:set -a " $HEROKU_APP " DEFAULT_DEST=" $DEFAULT_DEST "
126
+ else
127
+ echo " WARNING : Default Destination Folder ID Not Provided"
128
+ fi
129
+ heroku ps:scale web=1 -a " $HEROKU_APP "
123
130
echo " Deployment Completed"
124
131
else
125
132
echo " App Deployment Failed"
Original file line number Diff line number Diff line change @@ -20,15 +20,15 @@ elif [[ -n $SA_ZIP ]]; then
20
20
rm -rf accounts
21
21
else
22
22
echo " Neither Service Accounts Nor Token Provided. Exiting..."
23
- exit 0
23
+ exit 1
24
24
fi
25
25
26
26
# Config
27
27
if [[ -n " $BOT_TOKEN " && -n " $AUTH_CHATS " ]]; then
28
- wget -qO- https://gist.github.com/nenokkadine/433284483b9df4e73dfcb90d4310bd65/raw/9d743d207020cc88ef5c72caa0cc2a9c5c2a27af /config.js | sed -e " s/\$ BOT_TOKEN/$BOT_TOKEN /g" -e " s/\$ AUTH_CHATS/$AUTH_CHATS /g" > config.js
28
+ wget -qO- https://gist.github.com/nenokkadine/433284483b9df4e73dfcb90d4310bd65/raw/61775f835e216f992ed25ec71ab9d2310522caef /config.js | sed -e " s/\$ BOT_TOKEN/$BOT_TOKEN /g" -e " s/\$ AUTH_CHATS/$AUTH_CHATS /g" -e " s/ \$ DEFAULT_DEST/ $DEFAULT_DEST /g " > config.js
29
29
else
30
30
echo " Bot Token, Auth Chats not Provided Exiting , For Info Read Readme"
31
- exit 0
31
+ exit 1
32
32
fi
33
33
# Start GDutils Server
34
34
node server.js &
You can’t perform that action at this time.
0 commit comments