Skip to content
This repository has been archived by the owner on Nov 22, 2019. It is now read-only.

Commit

Permalink
📝 Add info
Browse files Browse the repository at this point in the history
  • Loading branch information
kj415j45 committed Jul 27, 2018
1 parent bf303d7 commit f2d047c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,24 @@ kjBot 是一个轻量级多功能的酷Q机器人框架。
如果你安装有 composer
```sh
mkdir kjBot/
composer create-project kj415j45/kjbot ./kjBot
composer create-project --no-dev kj415j45/kjbot ./kjBot
cd kjBot/
./build.sh
php build.php
```

如果没有
```sh
git clone https://github.com/kj415j45/kjBot.git
cd kjBot/
./build.sh
php build.php
```

仅作为框架使用时请清除 `composer.json` 内的 `require` 以及 `module/``middleWare/` 文件夹内的全部内容。
打开 `config.ini`,根据你的实际情况修改。

如果你需要试用 kjBot 的全部功能,请继续运行 `php composer.phar install`

仅作为框架使用时,在确保 module 与 middleWare 文件夹下没有你的文件后:`composer run-script framework-only`
然后重建 module 文件夹与 middleWare/Chain.php 文件。

### 入门

Expand Down
2 changes: 1 addition & 1 deletion build.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
file_put_contents("composer-installer", file_get_contents("https://getcomposer.org/installer"));
exec("php composer-installer",$x,$rValue1);
exec("php composer.phar install",$x,$rValue2);
exec("php composer.phar install --no-dev",$x,$rValue2);
if(($rValue1!=$rValue2)||($rValue1!=0))
die('安装 composer 失败');

Expand Down

0 comments on commit f2d047c

Please sign in to comment.