diff --git a/index.js b/index.js index 9c4b144..f96dc65 100644 --- a/index.js +++ b/index.js @@ -363,10 +363,9 @@ const handleDiscord = function (data) { const product_id = data.data.product_data; const fromChannel = data.data.channel.room; 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, body, evt}) + console.log(`${colors.cyan("[INFO]")} ${product_id.timestamp} ${evt.code} (${evt.priority}) ${body}`); let embed = { description: ` ${body.string}`, color: parseInt(config.priorityColors[evt.priority].replace("#", ""), 16) || 0x000000, @@ -413,7 +412,6 @@ const handleDiscord = function (data) { } if (!rows) return; // No channels to alert rows.forEach(async (row) => { - console.log(row) // Get Filters as arrays if (!row.filterEvt) row.filterEvt = ""; if (!row.filter) row.filter = "";