细...

This commit is contained in:
yeyang
2024-05-31 18:18:30 +08:00
parent bd50e1c2b6
commit 2569e5e874
5 changed files with 4 additions and 10 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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
}
/**