Update alive.py
This commit is contained in:
parent
6fa88cdc61
commit
a769430b04
5
alive.py
5
alive.py
|
|
@ -10,15 +10,14 @@ from dotenv import load_dotenv
|
|||
load_dotenv('config.env')
|
||||
|
||||
try:
|
||||
BASE_URL = os.environ.get('BASE_URL_OF_BOT')
|
||||
BASE_URL = os.environ.get('BASE_URL_OF_BOT', None)
|
||||
if len(BASE_URL) == 0:
|
||||
BASE_URL = None
|
||||
except KeyError:
|
||||
BASE_URL = None
|
||||
|
||||
IS_VPS = False
|
||||
try:
|
||||
IS_VPS = os.environ.get('IS_VPS')
|
||||
IS_VPS = os.environ.get('IS_VPS', 'False')
|
||||
if IS_VPS.lower() == 'true':
|
||||
IS_VPS = True
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue