Update run-dev.py
This commit is contained in:
parent
4629014b34
commit
c0d8f3aae5
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue