diff --git a/index.js b/index.js index 65f393f..5a51451 100644 --- a/index.js +++ b/index.js @@ -364,7 +364,8 @@ const handleDiscord = function (data) { const fromChannel = data.data.channel.room; const bodyData = data.data.body; console.log(product_id_raw.substring(0, 3)) - const evt = events[product_id.pil.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}) let embed = { description: ` ${bodyData.string}`,