Fuck 'cannot send an empty message'
This commit is contained in:
parent
198a8ceb3a
commit
14c8c8fba3
|
@ -193,7 +193,10 @@ global.createMPPbridge = async function createMPPbridge({room, channel, uri}) {
|
||||||
// addons
|
// addons
|
||||||
var wsc = new WebSocketMessageCollector(async function(data, startDate, endDate) {
|
var wsc = new WebSocketMessageCollector(async function(data, startDate, endDate) {
|
||||||
var attachmentName = `${uri} ${room} raw data recording from ${startDate.toISOString()} to ${endDate.toISOString()} .txt.gz`;
|
var attachmentName = `${uri} ${room} raw data recording from ${startDate.toISOString()} to ${endDate.toISOString()} .txt.gz`;
|
||||||
await channel.send(new Discord.MessageAttachment(data, attachmentName));
|
await channel.send({files:[{
|
||||||
|
attachment: data,
|
||||||
|
name: attachmentName
|
||||||
|
}]});
|
||||||
});
|
});
|
||||||
gClient.on("message", wsc.collect.bind(wsc));
|
gClient.on("message", wsc.collect.bind(wsc));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue