diff --git a/composer.json b/composer.json index 672e4496..e81639f5 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ } ], "require": { - "php": "^7.2 || ^7.3 || ^7.4 || ^8.0 || ^8.1", + "php": "^7.4 || ^8.0 || ^8.1", "ext-json": "*", "doctrine/dbal": "^2.13.1", "dragonmantank/cron-expression": "^3.3", @@ -22,7 +22,7 @@ "koriym/attributes": "^1.0", "onebot/libonebot": "dev-develop", "psr/container": "^2.0", - "symfony/console": "~6.0 || ~5.0 || ~4.0", + "symfony/console": "^6.0 || ^5.0 || ^4.0", "symfony/polyfill-ctype": "^1.19", "symfony/polyfill-mbstring": "^1.19", "symfony/polyfill-php80": "^1.16", diff --git a/src/ZM/Command/BotCraft/BotCraftCommand.php b/src/ZM/Command/BotCraft/BotCraftCommand.php new file mode 100644 index 00000000..b9333fe7 --- /dev/null +++ b/src/ZM/Command/BotCraft/BotCraftCommand.php @@ -0,0 +1,22 @@ +add(new ServerStopCommand()); // server停止 $this->add(new ServerStartCommand()); // 运行主服务的指令控制器 $this->add(new SystemdGenerateCommand()); // 生成systemd文件 + $this->add(new BotCraftCommand()); // 用于从命令行创建插件 if (LOAD_MODE === 1) { // 如果是 Composer 模式加载的,那么可以输入 check:config 命令,检查配置文件是否需要更新 $this->add(new CheckConfigCommand()); }