update plugin install and load strategy

This commit is contained in:
crazywhalecc
2023-02-28 23:07:09 +08:00
committed by Jerry
parent 9c599ff54b
commit 64c22328a1
10 changed files with 336 additions and 134 deletions

View File

@@ -4,10 +4,13 @@ declare(strict_types=1);
namespace {namespace};
use ZM\Annotation\OneBot\BotCommand;
use ZM\Context\BotContext;
class {class}
{
#[\BotCommand(match: '测试{basename}')]
public function firstBotCommand(\BotContext $ctx): void
#[BotCommand(match: '测试{basename}')]
public function firstBotCommand(BotContext $ctx): void
{
$ctx->reply('这是{name}插件的第一个命令!');
}