From 2023faedb4335320ab73e432e65222866fa6c3c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A4=B0=E7=BE=8A?= <746659424@qq.com> Date: Mon, 24 Apr 2023 09:16:10 +0000 Subject: [PATCH] =?UTF-8?q?=E5=B0=86`e.bot`=E6=9B=B4=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E4=B8=8D=E5=8F=AF=E6=9E=9A=E4=B8=BE=E5=B1=9E=E6=80=A7=20?= =?UTF-8?q?=E5=B0=86`e.bot`=E6=9B=B4=E6=94=B9=E4=B8=BA=E4=B8=8D=E5=8F=AF?= =?UTF-8?q?=E6=9E=9A=E4=B8=BE=E5=B1=9E=E6=80=A7=EF=BC=8C=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E5=9C=A8=E6=8E=A7=E5=88=B6=E5=8F=B0=E6=89=93=E5=8D=B0`e`?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E6=89=93=E5=8D=B0=E5=87=BA=E4=B8=80?= =?UTF-8?q?=E5=A0=86=E5=B1=9E=E6=80=A7=EF=BC=8C=E6=9B=B4=E5=A5=BD=E7=9A=84?= =?UTF-8?q?=E6=89=BE=E5=88=B0=E6=9C=89=E7=94=A8=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 椰羊 <746659424@qq.com> --- lib/plugins/loader.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/plugins/loader.js b/lib/plugins/loader.js index e345b6c..b7b31dc 100644 --- a/lib/plugins/loader.js +++ b/lib/plugins/loader.js @@ -158,7 +158,9 @@ class PluginsLoader { * @param e icqq Events */ async deal (e) { - e.bot = Bot + Object.defineProperty(e, 'bot', { + value: Bot + }) /** 检查频道消息 */ if (this.checkGuildMsg(e)) return /** 检查黑白名单 */