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