mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 05:47:11 +00:00
fix: at都被挤到消息最前面的问题
This commit is contained in:
parent
7bf5996dce
commit
8bdbd623b3
10 changed files with 18 additions and 53 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import Contactable, { core } from 'oicq'
|
||||
// import Contactable, { core } from 'oicq'
|
||||
import querystring from 'querystring'
|
||||
import fetch from 'node-fetch'
|
||||
import fs from 'fs'
|
||||
|
|
@ -7,6 +7,14 @@ import util from 'util'
|
|||
import stream from 'stream'
|
||||
import crypto from 'crypto'
|
||||
import child_process from 'child_process'
|
||||
let module
|
||||
try {
|
||||
module = await import('oicq')
|
||||
} catch (err) {
|
||||
module = await import('icqq')
|
||||
}
|
||||
const { core } = module
|
||||
const Contactable = module.default
|
||||
// import { pcm2slk } from 'node-silk'
|
||||
let errors = {}
|
||||
let pcm2slk
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue