2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-22 19:10:53 +08:00

修正戳一戳任意人会触发#绑定cookie bug

This commit is contained in:
Ctrlcvs 2022-09-18 22:49:49 +08:00
parent 35c4b6eb1a
commit 8263b87a30

View File

@ -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