修改 segment 导入 (#525)

This commit is contained in:
时雨◎星空 2023-03-22 03:19:03 +08:00 committed by GitHub
parent 541b2165a2
commit c3025b9c90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 4 additions and 5 deletions

View File

@ -1,7 +1,6 @@
import { Character, MysApi, Player } from '#miao.models'
import { Cfg, Common } from '#miao'
import lodash from 'lodash'
import { segment } from 'oicq'
import moment from 'moment'
let Avatar = {

View File

@ -1,7 +1,6 @@
import fs from 'fs'
import { promisify } from 'util'
import { pipeline } from 'stream'
import { segment } from 'oicq'
import MD5 from 'md5'
import fetch from 'node-fetch'
import lodash from 'lodash'

View File

@ -1,7 +1,6 @@
/*
* 面板公共方法及处理
* */
import { segment } from 'oicq'
import { Version } from '#miao'
import { Character, MysApi, Player } from '#miao.models'

View File

@ -1,4 +1,3 @@
import { segment } from 'oicq'
import { Cfg } from '#miao'
import { MysApi } from '#miao.models'

View File

@ -1,5 +1,4 @@
import lodash from 'lodash'
import { segment } from 'oicq'
import CharTalent from './CharTalent.js'
import CharWikiData from './CharWikiData.js'
import CharMaterial from './CharMaterial.js'

View File

@ -1,6 +1,10 @@
import { Data, Version } from '#miao'
import fs from 'fs'
if (!global.segment) {
global.segment = (await import("oicq")).segment
}
export * from './apps/index.js'
if (Bot?.logger?.info) {