From d10c81972c9cebf15b6117c5e4cbcc3bc225049b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=8C=8C?= Date: Fri, 13 Oct 2023 19:17:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/plugins/stdin.js | 3 --- package.json | 6 +++--- plugins/other/update.js | 6 +++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/lib/plugins/stdin.js b/lib/plugins/stdin.js index 6174c42..1212fc7 100644 --- a/lib/plugins/stdin.js +++ b/lib/plugins/stdin.js @@ -151,9 +151,6 @@ Bot.adapter.push(new class stdinAdapter { } Bot[this.id].gml.set(this.id, Bot[this.id].fl) - if (!Bot.uin.includes(this.id)) - Bot.uin.push(this.id) - process[this.id].on("data", data => this.message(data.toString())) logger.mark(`${logger.blue(`[${this.id}]`)} ${this.name}(${this.id}) 已连接`) diff --git a/package.json b/package.json index feca9d6..8a83d9f 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "node-xlsx": "^0.23.0", "oicq": "link:lib/modules/oicq", "pm2": "^5.3.0", - "puppeteer": "^21.3.6", + "puppeteer": "^21.3.8", "redis": "^4.6.10", "sequelize": "^6.33.0", "sqlite3": "^5.1.6", @@ -40,10 +40,10 @@ "yaml": "^2.3.2" }, "devDependencies": { - "eslint": "^8.50.0", + "eslint": "^8.51.0", "eslint-config-standard": "^17.1.0", "eslint-plugin-import": "^2.28.1", - "eslint-plugin-n": "^16.1.0", + "eslint-plugin-n": "^16.2.0", "eslint-plugin-promise": "^6.1.1" }, "imports": { diff --git a/plugins/other/update.js b/plugins/other/update.js index 70d75c2..a2b8377 100644 --- a/plugins/other/update.js +++ b/plugins/other/update.js @@ -19,11 +19,11 @@ export class update extends plugin { priority: 4000, rule: [ { - reg: '^#更新日志', + reg: '^#更新日志$', fnc: 'updateLog' }, { - reg: '^#(强制)?更新', + reg: '^#(强制)?更新$', fnc: 'update' }, { @@ -223,7 +223,7 @@ export class update extends plugin { cm = 'git config -l' if (plugin) cm = `cd "plugins/${plugin}" && ${cm}` end = await execSync(cm, { encoding: 'utf-8' }) - end = end.match(/remote\..*\.url=.+/g).join('\n\n').replace(/remote\..*\.url=/g, '') + end = end.match(/remote\..*\.url=.+/g).join('\n\n').replace(/remote\..*\.url=/g, '').replace(/\/\/([^@]+)@/, '//') } catch (error) { logger.error(error.toString()) await this.reply(error.toString())