fix CommandManualPlugin blocking annotations

This commit is contained in:
sunxyw
2023-01-02 23:06:58 +08:00
parent 2f94f5258d
commit 8477bf153f

View File

@@ -58,7 +58,7 @@ class CommandManualPlugin extends ZMPlugin
}
$parser->addSpecialParser(BotCommand::class, [$this, 'parseBotCommand']);
$parser->addSpecialParser(CommandHelp::class, fn () => false);
$parser->addSpecialParser(CommandHelp::class, fn () => true);
$this->addBotCommand(
BotCommand::make('help', 'help', level: 10)
@@ -89,7 +89,7 @@ class CommandManualPlugin extends ZMPlugin
{
$this->commands[$command->name] = $command;
$this->adjacent_annotations[$command->name] = $adjacent_annotations ?? [];
return true;
return null;
}
/**