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,