Hana Celeste commited on
Commit
c3de8c9
·
verified ·
1 Parent(s): 1f41cff

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -7
main.py CHANGED
@@ -50,13 +50,12 @@ async def get_discord_info(uid: str):
50
  return await discord_app.get_user_info(uid)
51
 
52
  @app.get("/aternos")
53
- async def control_aternos(type: str = Query("login")):
54
- try:
55
- result = await aternos.check_access(action_type=type)
56
- return result
57
- except Exception as e:
58
- return {"ok": False, "error": str(e)}
59
-
60
 
61
  @app.get("/")
62
  def home():
 
50
  return await discord_app.get_user_info(uid)
51
 
52
  @app.get("/aternos")
53
+ async def aternos_control(type: str = Query("login")):
54
+ USER = "Celeskry"
55
+ PASS = "Saik_yuaik1"
56
+
57
+ result = await aternos.run_action(USER, PASS, action_type=type)
58
+ return result
 
59
 
60
  @app.get("/")
61
  def home():