Compare commits
No commits in common. "381cdae5592d38b77c66f94f440e22e3383772e3" and "67f017429ffc0c33f06ee0d7043ec5854f997810" have entirely different histories.
381cdae559
...
67f017429f
6
index.js
6
index.js
|
@ -363,11 +363,12 @@ 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(`${colors.cyan("[INFO]")} ${product_id.timestamp} ${evt.code} (${evt.priority}) ${body}`);
|
||||
console.log({product_id_raw, product_id, fromChannel, body, evt})
|
||||
let embed = {
|
||||
description: `<t:${new Date(product_id.timestamp) / 1000}:T> <t:${new Date(product_id.timestamp) / 1000}:R> ${body.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,
|
||||
timestamp: product_id.timestamp,
|
||||
footer: {
|
||||
|
@ -412,6 +413,7 @@ 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 = "";
|
||||
|
|
Loading…
Reference in a new issue