Skip to content

Commit

Permalink
细节优化
Browse files Browse the repository at this point in the history
  • Loading branch information
TimeRainStarSky committed May 26, 2024
1 parent ef5457a commit 5be5e1a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion lib/plugins/stdin.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ Bot.adapter.push(new class stdinAdapter {
Bot.em(`${data.post_type}.${data.message_type}`, data)
}

async load() {
async load(force) {
if (!(process.stdin.isTTY || process.env.FORCE_TTY || force)) return

await Bot.mkdir(this.path)
Bot[this.id] = {
adapter: this,
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@
"node-fetch": "link:lib/modules/node-fetch",
"node-schedule": "^2.1.1",
"oicq": "link:lib/modules/oicq",
"pm2": "^5.3.1",
"puppeteer": "*",
"pm2": "^5.4.0",
"puppeteer": "^22.10.0",
"redis": "^4.6.14",
"sequelize": "^6.37.3",
"sqlite3": "5.1.6",
"sqlite3": "5.1.7",
"strip-ansi": "^7.1.0",
"ulid": "^2.3.0",
"ws": "^8.17.0",
"yaml": "^2.4.2"
},
"devDependencies": {
"eslint": "^8.57.0",
"eslint": "^9.3.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-n": "^17.7.0",
"eslint-plugin-promise": "^6.1.1"
},
"imports": {
Expand Down

0 comments on commit 5be5e1a

Please sign in to comment.