mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-25 01:25:34 +08:00
update plugin install and load strategy
This commit is contained in:
@@ -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}插件的第一个命令!');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user