Test again
Some checks are pending
ptero-push / build (push) Waiting to run

This commit is contained in:
Christopher Cookman 2025-05-08 00:46:09 -06:00
parent 381cdae559
commit 920058fed3

View file

@ -365,7 +365,7 @@ const handleDiscord = function (data) {
const body = data.data.body; const body = data.data.body;
var 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); evt.code = product_id.pil.substring(0, 3);
console.log(`${colors.cyan("[INFO]")} ${product_id.timestamp} ${evt.code} (${evt.priority}) ${body}`); console.log(`${colors.cyan("[INFO]")} ${fromChannel} @ ${product_id.timestamp}; ${evt.code} (${evt.priority}) ${body.string}`);
let embed = { let embed = {
description: `<t:${new Date(product_id.timestamp) / 1000}:T> <t:${new Date(product_id.timestamp) / 1000}:R> ${body.string}`, description: `<t:${new Date(product_id.timestamp) / 1000}:T> <t:${new Date(product_id.timestamp) / 1000}:R> ${body.string}`,
color: parseInt(config.priorityColors[evt.priority].replace("#", ""), 16) || 0x000000, color: parseInt(config.priorityColors[evt.priority].replace("#", ""), 16) || 0x000000,