MCPcopy Create free account
hub / github.com/AstrBotDevs/AstrBot / test_bot_by_id

Function test_bot_by_id

astrbot/dashboard/api/bots.py:138–143  ·  view source on GitHub ↗
(
    payload: BotConfigRequest,
    _auth: AuthContext = Depends(require_bot_scope),
)

Source from the content-addressed store, hash-verified

136
137@router.post("/bots/test")
138async def test_bot_by_id(
139 payload: BotConfigRequest,
140 _auth: AuthContext = Depends(require_bot_scope),
141):
142 bot_id = _required_text(payload.bot_id, "bot_id")
143 return ok({"id": bot_id, "status": "unsupported"})
144
145
146@router.patch("/bots/{bot_id:path}/enabled")

Callers

nothing calls this directly

Calls 2

okFunction · 0.90
_required_textFunction · 0.70

Tested by

no test coverage detected