From ee2c5488d3dd17080e6dd691f7f9ac2e2604ae3a Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Mon, 11 Aug 2025 01:55:26 -0600 Subject: [PATCH] Whoops --- modules/commands/export.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/commands/export.js b/modules/commands/export.js index 49f42c6..5c3b09d 100644 --- a/modules/commands/export.js +++ b/modules/commands/export.js @@ -52,11 +52,11 @@ module.exports.execute = async (interaction, client, db) => { // Convert rows to CSV format const csvRows = rows.map(row => `${row.timestamp},${row.reading},${row.notes}`); - const msg = rows.map(row => `**ID:** ${row.id}\n**Timestamp:** \n**Reading:** ${row.reading}\n**Notes:** ${row.notes || 'None'}`).join('\n\n'); + const msg = rows.map(row => `**ID:** ${row.id}\n**Timestamp:** \n**Reading:** ${row.reading}\n**Notes:** ${row.notes || 'None'}`).join('\n'); const csvContent = `Timestamp,Reading,Notes\n${csvRows.join('\n')}`; const csvBuffer = Buffer.from(csvContent, 'utf8'); const attachment = new Discord.AttachmentBuilder(csvBuffer, { name: `glucose_readings.csv` }); - return interaction.reply({ content: 'Here are your glucose readings:', files: [attachment] }); + return interaction.reply({ content: msg, files: [attachment] }); }); } catch (error) { console.error('Error exporting glucose readings:', error);