From 6f94537295c56fed03eeae365fb8dae408e3ec66 Mon Sep 17 00:00:00 2001 From: Jerry Date: Thu, 15 May 2025 13:21:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=A5=87=E6=80=AA=E7=9A=84un?= =?UTF-8?q?icode=E6=8E=A7=E5=88=B6=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/core/botControl.js | 2 +- models/ws/handler.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/botControl.js b/lib/core/botControl.js index bfbc148..1a85bf8 100644 --- a/lib/core/botControl.js +++ b/lib/core/botControl.js @@ -14,7 +14,7 @@ const botControl = { const botInfo = { uin: bot.uin, - nickName: bot.nickname, + nickName: bot.nickname.replace(/[\u200E-\u200F\u202A-\u202E\u2066-\u2069]/g, ''), groups: [], }; diff --git a/models/ws/handler.js b/models/ws/handler.js index 3876ed8..4a3b5c7 100644 --- a/models/ws/handler.js +++ b/models/ws/handler.js @@ -88,7 +88,7 @@ class Handler { } /** - * 广播消息 + * 广播消息,感觉没啥用,用core的广播代替了 * @param client * @param msg * @returns {Promise}