File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,14 @@ This script executes 2 actions:
13
13
14
14
## Usage:
15
15
16
- Environment Variables :
16
+ Set environment variables :
17
17
18
18
- Set IG_USERNAME to username account you want to monitor. Example: ladygaga
19
19
- Set WEBHOOK_URL to Discord account webhook url. To know how, just Google: "how to create webhook discord".
20
- - Set TIME_INTERVAL to the time in seconds in between each check for a new post. Example: 1.5, 600 (default=600)
20
+ - Set TIME_INTERVAL to the time in seconds in between each check for a new post. Example: 1.5, 600 (default=600 = 10 minutes)
21
+
22
+ How to setup enviroment variables:
23
+ Help: https://www.serverlab.ca/tutorials/linux/administration-linux/how-to-set-environment-variables-in-linux/
21
24
22
25
## Collaborations:
23
26
Original file line number Diff line number Diff line change 22
22
import time
23
23
24
24
# USAGE:
25
- # Environment Variables
25
+ # Set Environment Variables:
26
26
# Set IG_USERNAME to username account you want to monitor. Example - ladygaga
27
27
# Set WEBHOOK_URL to Discord account webhook url. To know how, just Google: "how to create webhook discord".
28
28
# Set TIME_INTERVAL to the time in seconds in between each check for a new post. Example - 1.5, 600 (default=600)
29
+ # Help: https://www.serverlab.ca/tutorials/linux/administration-linux/how-to-set-environment-variables-in-linux/
29
30
30
31
INSTAGRAM_USERNAME = os .environ .get ('IG_USERNAME' )
31
32
@@ -109,6 +110,6 @@ def main():
109
110
if os .environ .get ('IG_USERNAME' ) != None and os .environ .get ('WEBHOOK_URL' ) != None :
110
111
while True :
111
112
main ()
112
- time .sleep (float (os .environ .get ('TIME_INTERVAL' ) or 600 ))
113
+ time .sleep (float (os .environ .get ('TIME_INTERVAL' ) or 600 )) # 600 = 10 minutes
113
114
else :
114
115
print ('Please configure environment variables properly!' )
You can’t perform that action at this time.
0 commit comments