Hana Celeste commited on
Update main.py
Browse files
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
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 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():
|