gwuuuuh 3
Some checks are pending
ptero-push / build (push) Waiting to run

This commit is contained in:
Christopher Cookman 2025-05-08 00:37:39 -06:00
parent 50264ac1d4
commit 69c60216ef

View file

@ -362,13 +362,13 @@ const handleDiscord = function (data) {
const product_id_raw = data.data.raw const product_id_raw = data.data.raw
const product_id = data.data.product_data; const product_id = data.data.product_data;
const fromChannel = data.data.channel.room; const fromChannel = data.data.channel.room;
const bodyData = data.data.body; const body = data.data.body;
console.log(product_id_raw.substring(0, 3)) console.log(product_id_raw.substring(0, 3))
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({product_id_raw, product_id, fromChannel, bodyData, evt}) console.log({product_id_raw, product_id, fromChannel, body, evt})
let embed = { let embed = {
description: `<t:${product_id.timestamp / 1000}:T> <t:${product_id.timestamp / 1000}:R> ${bodyData.string}`, description: `<t:${product_id.timestamp / 1000}:T> <t:${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,
timestamp: product_id.timestamp, timestamp: product_id.timestamp,
footer: { footer: {
@ -391,7 +391,7 @@ const handleDiscord = function (data) {
type: 2, type: 2,
label: "Product", label: "Product",
style: 5, style: 5,
url: bodyData.url url: body.url
}, },
{ {
type: 2, type: 2,