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