Skip to content

Commit

Permalink
⬆️ upgrade [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Oct 18, 2020
1 parent 593dbb7 commit a82ead8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
![GitHub package.json version](https://img.shields.io/github/package-json/v/ElpsyCN/el-bot-template)
[![QQ Group](https://img.shields.io/badge/qq%20group-707408530-12B7F5)](https://shang.qq.com/wpa/qunwpa?idkey=5b0eef3e3256ce23981f3b0aa2457175c66ca9194efd266fd0e9a7dbe43ed653)
[![telegram](https://img.shields.io/badge/telegram-elpsy__cn-blue)](https://t.me/elpsy_cn)
[![docs](https://github.com/ElpsyCN/el-bot-docs/workflows/docs/badge.svg)](https://docs.bot.elpsy.cn)

本仓库为包含 [mirai](https://github.com/mamoe/mirai)[el-bot](https://github.com/ElpsyCN/el-bot) 的基础可运行模版。
并在 `package.json` 中预置了几个简单的脚本。
Expand Down Expand Up @@ -142,7 +143,16 @@ npm run start

### Webhook

```sh
npm run webhook
# yarn webhook
- `enable`: 是否启用

```js
// el/index.js
module.exports = {
webhook: {
enable: true,
path: "/webhook",
port: 7777,
secret: "el-psy-congroo",
},
};
```
1 change: 1 addition & 0 deletions el/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
config: utils.config.parse(resolve(__dirname, "./index.yml")),
// webhook
webhook: {
enable: true,
path: "/webhook",
port: 7777,
secret: "el-psy-congroo",
Expand Down
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
"start:bot": "el start bot",
"start:mirai": "el start mirai",
"install:mirai": "el install mirai",
"lint": "eslint --fix . && prettier --write .",
"webhook": "el start webhook"
"lint": "eslint --fix . && prettier --write ."
},
"repository": {
"type": "git",
Expand All @@ -33,13 +32,13 @@
},
"homepage": "https://github.com/ElpsyCN/el-bot-template#readme",
"dependencies": {
"el-bot": "0.5.2"
"el-bot": "0.5.7"
},
"devDependencies": {
"dotenv": "^8.2.0",
"eslint": "^7.9.0",
"eslint-config-prettier": "^6.11.0",
"nodemon": "^2.0.4",
"eslint": "^7.11.0",
"eslint-config-prettier": "^6.13.0",
"nodemon": "^2.0.5",
"prettier": "^2.1.2"
}
}

0 comments on commit a82ead8

Please sign in to comment.