added environment variables
This commit is contained in:
parent
23bd102e54
commit
399f8d8fa1
|
|
@ -1 +1,2 @@
|
||||||
*.txt
|
*.txt
|
||||||
|
*.env
|
||||||
|
|
|
||||||
6
run.py
6
run.py
|
|
@ -9,6 +9,7 @@ import datetime
|
||||||
from apscheduler.schedulers.blocking import BlockingScheduler
|
from apscheduler.schedulers.blocking import BlockingScheduler
|
||||||
import logging
|
import logging
|
||||||
from prawcore import NotFound
|
from prawcore import NotFound
|
||||||
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
def sub_exists(sub):
|
def sub_exists(sub):
|
||||||
exists = True
|
exists = True
|
||||||
|
|
@ -107,6 +108,11 @@ In that case please turn off 2FA because it\'s not compatible with this script!
|
||||||
''')
|
''')
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
|
reddit.validate_on_submit = True
|
||||||
|
load_dotenv('creds.env')
|
||||||
|
USER_SECRET = os.getenv('USERSECRET')
|
||||||
|
SECRET = os.getenv('SECRET2')
|
||||||
|
|
||||||
ready = '0'
|
ready = '0'
|
||||||
checker = ['0', '0', '0'] # for checking if all neccesary functions have been run
|
checker = ['0', '0', '0'] # for checking if all neccesary functions have been run
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue