This commit is contained in:
Flummi 2019-11-16 07:54:04 +01:00
parent d5c25ddabd
commit 5b87f555fa

View File

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