Skip to content

Commit

Permalink
细节优化
Browse files Browse the repository at this point in the history
  • Loading branch information
TimeRainStarSky committed Apr 15, 2024
1 parent f0d37f5 commit 7646ec8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
5 changes: 1 addition & 4 deletions lib/plugins/stdin.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,10 @@ Bot.adapter.push(new class stdinAdapter {

pickFriend() {
return {
user_id: this.id,
nickname: this.name,
group_id: this.id,
group_name: this.name,
sendMsg: msg => this.sendMsg(msg),
recallMsg: message_id => this.recallMsg(message_id),
sendFile: (file, name) => this.sendFile(file, name),
pickMember: function() { return this },
}
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
"yaml": "^2.4.1"
},
"devDependencies": {
"eslint": "^9.0.0",
"eslint": "^8.57.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^17.2.0",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.1.1"
},
"imports": {
Expand Down
5 changes: 4 additions & 1 deletion plugins/other/restart.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ export class Restart extends plugin {
if (cfg.bot.restart_time) {
this.e = {
logFnc: "[自动重启]" ,
reply: msg => Bot.sendMasterMsg(msg),
reply: msg => {
Bot.sendMasterMsg(msg)
await Bot.sleep(5000)
},
}
setTimeout(() => this.restart(), cfg.bot.restart_time*60000)
}
Expand Down

0 comments on commit 7646ec8

Please sign in to comment.