mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 23:55:35 +08:00
add plugin make command
This commit is contained in:
14
src/Templates/PluginMain.php.template
Normal file
14
src/Templates/PluginMain.php.template
Normal 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}插件的第一个命令!');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user