Update run-dev.py

This commit is contained in:
RedoX 2021-07-05 22:31:39 +06:00 committed by GitHub
parent 4629014b34
commit c0d8f3aae5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -10,9 +10,7 @@ load_dotenv() # take environment variables from .env.
def runSetup():
def alert(missing):
print(
f"\nCopy your {missing} and save it into Secrets (Environment variables) Sidebar!\n"
)
print(f"\nCopy your {missing} and save it as an environment variable.\n")
req_env_vars = ["API_ID", "API_HASH", "INDEX_SETTINGS"]
@ -24,7 +22,7 @@ def runSetup():
if os.getenv("SESSION_STRRING") is None:
os.system("python app/generate_session_string.py")
print("\nCopy your SESSION_STRING from above and save it into Secrets (Environment variables) Sidebar!")
print("\nCopy your SESSION_STRING from above and save it as an environment variable.")
return
os.system("python -m app")