fix action response on bot action

This commit is contained in:
crazywhalecc 2023-05-26 20:33:37 +08:00 committed by Jerry Ma
parent 92fabb0bfc
commit 2af14eff53

View File

@ -92,7 +92,7 @@ trait BotActionTrait
if ($response instanceof ActionResponse) {
$handler = new AnnotationHandler(BotAction::class);
$handler->setRuleCallback(fn (BotAction $act) => ($act->action === '' || $act->action === $action) && $act->need_response);
// container()->set(ActionResponse::class, $response);
container()->set(ActionResponse::class, $response);
$handler->handleAll();
return $response;
}