adding /whitelist

hardcoded gg gg
This commit is contained in:
Aeru committed 2026-10-18 00:01:25 +02:00
1 parent f5a45bf87c
commit eef8fe95bd
1 file changed
+7 -2
+7 -2
View File
@@ -17,7 +17,10 @@ lanyard_link = "https://api.lanyard.rest/v1/users/1558056824387805300"
CACHE_TTL = 1.0
_cache = {"data": None, "time": 0.0}
_lock = threading.Lock()
WHITELIST = [
1558056824387805300,
1179777658675007520,
] #harcode final boss
def get_lanyard():
@@ -43,7 +46,9 @@ def read_root():
@app.get("/discord")
def read_lanyard():
return get_lanyard()
@app.get("/whitelist")
def read_whitelist():
return WHITELIST
if __name__ == "__main__":
import uvicorn