add plugin make command

This commit is contained in:
crazywhalecc
2022-12-25 23:11:10 +08:00
parent ed5a9c6c12
commit 579269cb5b
6 changed files with 241 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
<?php
declare(strict_types=1);
namespace {namespace};
class {class}
{
#[\BotCommand(match: '测试{name}')]
public function firstBotCommand(\BotContext $ctx): void
{
$ctx->reply('这是{name}插件的第一个命令!');
}
}