暂时回滚对@icqqjs/icqq的兼容,影响面不止这一处。
如有对应诉求可以考虑使用package别名等方案实现
This commit is contained in:
parent
64f4c85ca2
commit
0f0d6a2fac
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue