Add files via upload

This commit is contained in:
Juan Young 2019-07-17 19:10:31 +08:00 committed by GitHub
parent 286f5bc23d
commit a96c959c1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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