refactor: extract userbot to standalone repo, add as git submodule
Deploy to Server / deploy (push) Has been cancelled
Deploy to Server / deploy (push) Has been cancelled
userbot now lives at ssh://git@gitssh.forust.xyz:2221/forust/userbot.git and is included in homelab as a submodule at userbot/
This commit is contained in:
134 files changed
+4
-15257
No files matched your search
@@ -1,31 +0,0 @@
|
||||
import os
|
||||
|
||||
import environs
|
||||
|
||||
env = environs.Env()
|
||||
try:
|
||||
env.read_env('./.env')
|
||||
except FileNotFoundError:
|
||||
print('No .env file found, using os.environ.')
|
||||
|
||||
api_id = int(os.getenv('API_ID', env.int('API_ID')))
|
||||
api_hash = os.getenv('API_HASH', env.str('API_HASH'))
|
||||
|
||||
STRINGSESSION = os.getenv('STRINGSESSION', env.str('STRINGSESSION'))
|
||||
|
||||
second_session = os.getenv('SECOND_SESSION', env.str('SECOND_SESSION', ''))
|
||||
|
||||
db_type = os.getenv('DATABASE_TYPE', env.str('DATABASE_TYPE'))
|
||||
db_url = os.getenv('DATABASE_URL', env.str('DATABASE_URL', ''))
|
||||
db_name = os.getenv('DATABASE_NAME', env.str('DATABASE_NAME'))
|
||||
|
||||
apiflash_key = os.getenv('APIFLASH_KEY', env.str('APIFLASH_KEY'))
|
||||
rmbg_key = os.getenv('RMBG_KEY', env.str('RMBG_KEY', ''))
|
||||
vt_key = os.getenv('VT_KEY', env.str('VT_KEY', ''))
|
||||
gemini_key = os.getenv('GEMINI_KEY', env.str('GEMINI_KEY', ''))
|
||||
cohere_key = os.getenv('COHERE_KEY', env.str('COHERE_KEY', ''))
|
||||
|
||||
pm_limit = int(os.getenv('PM_LIMIT', env.int('PM_LIMIT', 4)))
|
||||
|
||||
test_server = bool(os.getenv('TEST_SERVER', env.bool('TEST_SERVER', False)))
|
||||
modules_repo_branch = os.getenv('MODULES_REPO_BRANCH', env.str('MODULES_REPO_BRANCH', 'master'))
|
||||
Reference in new issue
Block a user