暂时回滚对@icqqjs/icqq的兼容,影响面不止这一处。

如有对应诉求可以考虑使用package别名等方案实现
This commit is contained in:
Kokomi 2024-03-27 01:53:39 +08:00
parent 64f4c85ca2
commit 0f0d6a2fac
1 changed files with 1 additions and 7 deletions

View File

@ -1,14 +1,8 @@
import './config/init.js'
import ListenerLoader from './listener/loader.js'
import { Client } from 'icqq'
import cfg from './config/config.js'
let Client
try {
Client = (await import('@icqqjs/icqq')).Client
} catch (err) {
Client = (await import('icqq')).Client
}
export default class Yunzai extends Client {
// eslint-disable-next-line no-useless-constructor
constructor (conf) {