From d3870beffddf21b9dc6a096dd3d4db817a475cde Mon Sep 17 00:00:00 2001 From: Kokomi <102026640+yoimiya-kokomi@users.noreply.github.com> Date: Sat, 11 Mar 2023 19:59:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0sqlite=E5=8F=8Asequelize?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=EF=BC=8C=E4=BE=9B=E5=90=8E=E7=BB=AD=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 10 ++++++---- plugins/other/restart.js | 21 +++++++++------------ 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index eec0416..afdec10 100644 --- a/package.json +++ b/package.json @@ -25,20 +25,22 @@ "image-size": "^1.0.2", "inquirer": "^8.2.5", "lodash": "^4.17.21", - "log4js": "^6.9.0", + "log4js": "^6.9.1", "md5": "^2.3.0", "moment": "^2.29.4", - "node-fetch": "^3.3.0", + "node-fetch": "^3.3.1", "node-schedule": "^2.1.1", "node-xlsx": "^0.21.0", "oicq": "^2.3.1", "pm2": "^5.2.2", - "puppeteer": "^19.7.3", + "puppeteer": "^19.7.4", "redis": "^4.6.5", + "sequelize": "^6.29.3", + "sqlite3": "^5.1.4", "yaml": "^2.2.1" }, "devDependencies": { - "eslint": "^8.35.0", + "eslint": "^8.36.0", "eslint-config-standard": "^17.0.0", "eslint-plugin-import": "^2.27.5", "eslint-plugin-n": "^15.6.1", diff --git a/plugins/other/restart.js b/plugins/other/restart.js index b8a11b5..6534b9b 100644 --- a/plugins/other/restart.js +++ b/plugins/other/restart.js @@ -11,18 +11,15 @@ export class Restart extends plugin { dsc: '#重启', event: 'message', priority: 10, - rule: [ - { - reg: '^#重启$', - fnc: 'restart', - permission: 'master' - }, - { - reg: '^#(停机|关机)$', - fnc: 'stop', - permission: 'master' - } - ] + rule: [{ + reg: '^#重启$', + fnc: 'restart', + permission: 'master' + }, { + reg: '^#(停机|关机)$', + fnc: 'stop', + permission: 'master' + }] }) if (e) this.e = e