refactor plugin generator to new format

This commit is contained in:
crazywhalecc
2023-02-21 00:26:15 +08:00
committed by Jerry
parent e12b41b280
commit 13dd7e22f3
3 changed files with 72 additions and 55 deletions

View File

@@ -6,7 +6,7 @@ namespace {namespace};
class {class}
{
#[\BotCommand(match: '测试{name}')]
#[\BotCommand(match: '测试{basename}')]
public function firstBotCommand(\BotContext $ctx): void
{
$ctx->reply('这是{name}插件的第一个命令!');