Spaces:
Running
Running
Upload main.py
Browse files
main.py
CHANGED
@@ -82,7 +82,6 @@ SOURCE_ALPHA_URL = os.environ["SOURCE_ALPHA_URL"]
|
|
82 |
SOURCE_WAIFU_URL = os.environ["SOURCE_WAIFU_URL"]
|
83 |
SOURCE_TIKTOK_WTF_URL = os.environ["SOURCE_TIKTOK_WTF_URL"]
|
84 |
SOURCE_TIKTOK_TECH_URL = os.environ["SOURCE_TIKTOK_TECH_URL"]
|
85 |
-
DEVELOPER_ID = os.environ["DEVELOPER_ID"]
|
86 |
|
87 |
client_mongo = MongoClient(MONGO_URL)
|
88 |
db = client_mongo["tiktokbot"]
|
@@ -213,7 +212,7 @@ def profile_clone(
|
|
213 |
bio=None,
|
214 |
api_key: None = Depends(validate_api_key)
|
215 |
):
|
216 |
-
if user_id
|
217 |
return {"status": "false", "message": "Only Developer"}
|
218 |
|
219 |
first_name, _, profile_id, _ = get_profile_clone(user_id)
|
@@ -314,7 +313,7 @@ def sibyl_system_ban(
|
|
314 |
reason: str = Query(..., description="Reason in query parameter"),
|
315 |
api_key: None = Depends(validate_api_key)
|
316 |
):
|
317 |
-
if user_id
|
318 |
return {"status": "false", "message": "Only Developer"}
|
319 |
|
320 |
try:
|
|
|
82 |
SOURCE_WAIFU_URL = os.environ["SOURCE_WAIFU_URL"]
|
83 |
SOURCE_TIKTOK_WTF_URL = os.environ["SOURCE_TIKTOK_WTF_URL"]
|
84 |
SOURCE_TIKTOK_TECH_URL = os.environ["SOURCE_TIKTOK_TECH_URL"]
|
|
|
85 |
|
86 |
client_mongo = MongoClient(MONGO_URL)
|
87 |
db = client_mongo["tiktokbot"]
|
|
|
212 |
bio=None,
|
213 |
api_key: None = Depends(validate_api_key)
|
214 |
):
|
215 |
+
if user_id == 1191668125: # only devs
|
216 |
return {"status": "false", "message": "Only Developer"}
|
217 |
|
218 |
first_name, _, profile_id, _ = get_profile_clone(user_id)
|
|
|
313 |
reason: str = Query(..., description="Reason in query parameter"),
|
314 |
api_key: None = Depends(validate_api_key)
|
315 |
):
|
316 |
+
if user_id == 1191668125: # only devs
|
317 |
return {"status": "false", "message": "Only Developer"}
|
318 |
|
319 |
try:
|