mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
fix: #613
This commit is contained in:
parent
46d88c2669
commit
1c6c10b118
3 changed files with 75 additions and 68 deletions
|
|
@ -1,20 +1,8 @@
|
|||
import { UserInfo, AddUser } from './user_data.js'
|
||||
import { randomString, getUserData, getMasterQQ, getUin } from '../../utils/common.js'
|
||||
import { getBots } from '../../utils/bot.js';
|
||||
import fs from 'fs'
|
||||
|
||||
function getBots () {
|
||||
if (Bot.uin === 88888) {
|
||||
// 找适配器
|
||||
let adapters = Bot.adapter
|
||||
return adapters?.map(uin => Bot[uin])
|
||||
} else if (Bot.adapter && Bot.adapter.length > 0) {
|
||||
let bots = [Bot]
|
||||
Bot.adapter.forEach(uin => {
|
||||
bots.push(Bot[uin])
|
||||
})
|
||||
return bots
|
||||
}
|
||||
}
|
||||
import path from 'path';
|
||||
|
||||
async function User (fastify, options) {
|
||||
// 登录
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue