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
63797e8ce8
commit
9db582beb4
|
@ -35,7 +35,7 @@ class Command extends LineAPI {
|
|||
|
||||
async getSpeed() {
|
||||
let curTime = Date.now() / 1000;
|
||||
await this._sendMessage(this.messages, '');
|
||||
await this._sendMessage(this.messages, 'waiting...');
|
||||
const rtime = (Date.now() / 1000) - curTime;
|
||||
await this._sendMessage(this.messages, `${rtime} Second`);
|
||||
return;
|
||||
|
@ -52,7 +52,7 @@ class Command extends LineAPI {
|
|||
contentType: 13,
|
||||
contentPreview: null,
|
||||
contentMetadata:
|
||||
{ mid: '' }
|
||||
{ mid: 'u1d55aeaa8b863cb338f4e8fd7a761b4b' }
|
||||
}
|
||||
Object.assign(this.messages,msg);
|
||||
this._sendMessage(this.messages);
|
||||
|
|
|
@ -83,7 +83,7 @@ class LINE extends Command {
|
|||
let receiver = messages.to;
|
||||
let sender = messages.from;
|
||||
|
||||
this.command('.speed', this.getSpeed.bind(this));
|
||||
this.command('speed', this.getSpeed.bind(this));
|
||||
this.command(`kkabeh ${payload}`,this.kickAll.bind(this));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue