From a96c959c1c81e7ee4bf65581c0d2d4fa96229e5a Mon Sep 17 00:00:00 2001 From: Juan Young <38613927+MrYoung249@users.noreply.github.com> Date: Wed, 17 Jul 2019 19:10:31 +0800 Subject: [PATCH] Add files via upload --- src/main.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index b43268a..902ed02 100644 --- a/src/main.js +++ b/src/main.js @@ -7,7 +7,7 @@ class LINE extends Command { this.receiverID = ''; this.checkReader = []; this.stateStatus = { - cancel: 0, + cancel: 1, kick: 1, salam: 1 }; @@ -42,12 +42,23 @@ class LINE extends Command { this.textMessage(message) } - if(operation.type == 13) { // diinvite + if(operation.type == 13) { if(this.stateStatus.kick == 1) { return this._acceptGroupInvitation(operation.param1); } } + if(operation.type == 17) { +    if(this.stateStatus.kick == operation.param1) { +            if(this.stateStatus.kick == 1) { + if(isAdminOrBot(operation.param2)){ + }else{ + this._kickMember(operation.param1,[operation.param2]); + } + } + } + } + if(operation.type == 16 && this.stateStatus.salam == 1){ let halo = new Message(); halo.to = operation.param1;