From 69c60216efc8e07da83edb409cc1cdb13043012d Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Thu, 8 May 2025 00:37:39 -0600 Subject: [PATCH] gwuuuuh 3 --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 5a51451..fd610f1 100644 --- a/index.js +++ b/index.js @@ -362,13 +362,13 @@ const handleDiscord = function (data) { const product_id_raw = data.data.raw const product_id = data.data.product_data; const fromChannel = data.data.channel.room; - const bodyData = data.data.body; + const body = data.data.body; console.log(product_id_raw.substring(0, 3)) var evt = events[product_id.pil.substring(0, 3)]; evt.code = product_id.pil.substring(0, 3); - console.log({product_id_raw, product_id, fromChannel, bodyData, evt}) + console.log({product_id_raw, product_id, fromChannel, body, evt}) let embed = { - description: ` ${bodyData.string}`, + description: ` ${body.string}`, color: parseInt(config.priorityColors[evt.priority].replace("#", ""), 16) || 0x000000, timestamp: product_id.timestamp, footer: { @@ -391,7 +391,7 @@ const handleDiscord = function (data) { type: 2, label: "Product", style: 5, - url: bodyData.url + url: body.url }, { type: 2,