From 2af14eff5375eead91f865491c4b789499436ed0 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Fri, 26 May 2023 20:33:37 +0800 Subject: [PATCH] fix action response on bot action --- src/ZM/Context/Trait/BotActionTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ZM/Context/Trait/BotActionTrait.php b/src/ZM/Context/Trait/BotActionTrait.php index 4ca3f6d4..f5785622 100644 --- a/src/ZM/Context/Trait/BotActionTrait.php +++ b/src/ZM/Context/Trait/BotActionTrait.php @@ -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; }