mirror of
https://github.com/liberliber/LINE-KickBot1.git
synced 2024-09-20 06:46:01 +08:00
Add files via upload
This commit is contained in:
parent
286f5bc23d
commit
a96c959c1c
15
src/main.js
15
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;
|
||||
|
|
Loading…
Reference in a new issue