diff --git a/apps/assistant.js b/apps/assistant.js index a700c9b..a721dd4 100644 --- a/apps/assistant.js +++ b/apps/assistant.js @@ -614,7 +614,6 @@ export class Assistant extends plugin { /** * 查看头像 - * @param */ async LookAvatar() { try { @@ -638,7 +637,6 @@ export class Assistant extends plugin { /** * 设置日志等级 - * @param */ async logs() { if (!common.checkPermission(this.e, "master")) return diff --git a/apps/groupAdmin/groupVoteBan.js b/apps/groupAdmin/groupVoteBan.js index 860755d..3a0b141 100644 --- a/apps/groupAdmin/groupVoteBan.js +++ b/apps/groupAdmin/groupVoteBan.js @@ -39,7 +39,6 @@ export class GroupVoteBan extends plugin { /** * 功能开关 - * @param */ async Switch() { if (!common.checkPermission(this.e, "master")) return @@ -57,7 +56,6 @@ export class GroupVoteBan extends plugin { /** * 投票设置 - * @param */ async Settings() { if (!common.checkPermission(this.e, "master")) return diff --git a/apps/groupAdmin/groupWhiteListCtrl.js b/apps/groupAdmin/groupWhiteListCtrl.js index 6c5bf15..ac35a22 100644 --- a/apps/groupAdmin/groupWhiteListCtrl.js +++ b/apps/groupAdmin/groupWhiteListCtrl.js @@ -22,7 +22,6 @@ export class groupWhiteListCtrl extends plugin { /** * 加白名单 - * @param */ async whiteQQ() { if (!common.checkPermission(this.e, "master")) return @@ -45,7 +44,6 @@ export class groupWhiteListCtrl extends plugin { /** * 开关白名单自动解禁 - * @param */ async noBan() { if (!common.checkPermission(this.e, "master")) return diff --git a/model/api/funApi/thumbUpApi.js b/model/api/funApi/thumbUpApi.js index 8755895..01401aa 100644 --- a/model/api/funApi/thumbUpApi.js +++ b/model/api/funApi/thumbUpApi.js @@ -13,6 +13,7 @@ export default class ThumbUpApi { async thumbUp(uid, times = 1) { try { let core = this.Bot.icqq?.core + // eslint-disable-next-line import/no-unresolved if (!core) core = (await import("icqq")).core if (times > 20) { times = 20 } let ReqFavorite diff --git a/tools/uploadRecord.js b/tools/uploadRecord.js index 3f85ad4..2762a3b 100644 --- a/tools/uploadRecord.js +++ b/tools/uploadRecord.js @@ -1,3 +1,4 @@ +/* eslint-disable import/no-unresolved */ /* eslint-disable no-void */ import querystring from "querystring" import fetch from "node-fetch" @@ -11,11 +12,9 @@ let core = null let Contactable = null try { - Contactable = (await import("oicq")).default - core = (await import("oicq")).core + Contactable = (await import("icqq"))?.default + core = (await import("icqq"))?.core } catch (error) { - Contactable = (await import("icqq").catch(() => {}))?.default - core = (await import("icqq").catch(() => {}))?.core } /**