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 725dffe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"node-fetch": "link:lib/modules/node-fetch",
"node-schedule": "^2.1.1",
"oicq": "link:lib/modules/oicq",
"pm2": "^5.3.1",
"pm2": "^5.4.0",
"puppeteer": "*",
"redis": "^4.6.14",
"sequelize": "^6.37.3",
Expand Down

0 comments on commit 725dffe

Please sign in to comment.