mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
15 lines
340 B
JavaScript
15 lines
340 B
JavaScript
export 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
|
|
} else {
|
|
return [Bot]
|
|
}
|
|
}
|