mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-20 15:15:35 +08:00
add class alias helper generate command
This commit is contained in:
@@ -189,6 +189,7 @@ class OneBot12Adapter extends ZMPlugin
|
||||
// 绑定容器
|
||||
container()->instance(OneBotEvent::class, $obj);
|
||||
container()->alias(OneBotEvent::class, 'bot.event');
|
||||
container()->bind(BotContext::class, function () { return bot(); });
|
||||
|
||||
// 调用 BotEvent 事件
|
||||
$handler = new AnnotationHandler(BotEvent::class);
|
||||
@@ -215,10 +216,6 @@ class OneBot12Adapter extends ZMPlugin
|
||||
return $event->retcode === null || $event->retcode === $resp->retcode;
|
||||
});
|
||||
$handler->handleAll($resp);
|
||||
|
||||
$act = bot()->getEchoAction($resp->echo);
|
||||
if ($act !== null) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user