no reply
This commit is contained in:
parent
d5c25ddabd
commit
5b87f555fa
|
@ -62,7 +62,7 @@ export default class slack extends EventEmitter {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async send({ channel, text }) {
|
async send(channel, text) {
|
||||||
return this.server.wss.socket.send(JSON.stringify({
|
return this.server.wss.socket.send(JSON.stringify({
|
||||||
type: "message",
|
type: "message",
|
||||||
channel: channel,
|
channel: channel,
|
||||||
|
@ -86,9 +86,9 @@ export default class slack extends EventEmitter {
|
||||||
message: tmp.text,
|
message: tmp.text,
|
||||||
time: ~~(Date.now() / 1000),
|
time: ~~(Date.now() / 1000),
|
||||||
raw: tmp,
|
raw: tmp,
|
||||||
reply: msg => this.send(tmp.channel, msg, tmp.message_id),
|
reply: msg => this.send(tmp.channel, msg),
|
||||||
replyAction: msg => this.send(tmp.channel, `Uwe ${msg}`, tmp.message_id),
|
replyAction: msg => this.send(tmp.channel, `Uwe ${msg}`),
|
||||||
replyNotice: msg => this.send(tmp.channel, msg, tmp.message_id)
|
replyNotice: msg => this.send(tmp.channel, msg)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user