From 8263b87a309724da927f80c18c9836c97416d91c Mon Sep 17 00:00:00 2001 From: Ctrlcvs <1509167646@qq.com> Date: Sun, 18 Sep 2022 22:49:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=88=B3=E4=B8=80=E6=88=B3?= =?UTF-8?q?=E4=BB=BB=E6=84=8F=E4=BA=BA=E4=BC=9A=E8=A7=A6=E5=8F=91#?= =?UTF-8?q?=E7=BB=91=E5=AE=9Acookie=20=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adapter/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adapter/index.js b/adapter/index.js index b5e9c9b..5661a02 100644 --- a/adapter/index.js +++ b/adapter/index.js @@ -22,7 +22,8 @@ export class atlas extends plugin { }) } accept () { - if(this.event==='notice.*.poke'){ + if(this.event==='notice.*.poke'&&this.e.target_id === Bot.uin){ + this.e.user_id=this.e.operator_id; this.e.msg = '#poke#' } this.e.original_msg = this.e.original_msg || this.e.msg