diff --git a/index.js b/index.js index b8aba2b..e9e9455 100644 --- a/index.js +++ b/index.js @@ -364,7 +364,7 @@ const handleDiscordGuilds = 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_raw.substring(0, 3)]; + const evt = events[product_id.pil.substring(0, 3)]; console.log({product_id_raw, product_id, fromChannel, bodyData, evt}) let embed = { description: ` ${bodyData.string}`,