mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 23:55:35 +08:00
refactor plugin generator to new format
This commit is contained in:
@@ -6,7 +6,7 @@ namespace {namespace};
|
||||
|
||||
class {class}
|
||||
{
|
||||
#[\BotCommand(match: '测试{name}')]
|
||||
#[\BotCommand(match: '测试{basename}')]
|
||||
public function firstBotCommand(\BotContext $ctx): void
|
||||
{
|
||||
$ctx->reply('这是{name}插件的第一个命令!');
|
||||
|
||||
Reference in New Issue
Block a user