From 823301e5c6c3527cd5813a452d7cd5a6a6b941bc Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Tue, 28 Nov 2023 15:19:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=AA=92=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/common.js b/utils/common.js index 51c67d5f..f9b2de94 100644 --- a/utils/common.js +++ b/utils/common.js @@ -848,8 +848,8 @@ export function getMaxModelTokens (model = 'gpt-3.5-turbo') { } export function getUin (e) { - if (e?.bot?.uin) return e.bot.uin if (e?.self_id) return e.self_id + if (e?.bot?.uin) return e.bot.uin if (Array.isArray(Bot.uin)) { if (Config.trssBotUin && Bot.uin.indexOf(Config.trssBotUin) > -1) { return Config.trssBotUin } else { Bot.uin.forEach((u) => {