Fuck 'cannot send an empty message'

This commit is contained in:
Lamp 2022-01-04 16:28:12 -08:00
parent 198a8ceb3a
commit 14c8c8fba3
1 changed files with 4 additions and 1 deletions

View File

@ -193,7 +193,10 @@ global.createMPPbridge = async function createMPPbridge({room, channel, uri}) {
// addons
var wsc = new WebSocketMessageCollector(async function(data, startDate, endDate) {
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));