This commit is contained in:
parent
381cdae559
commit
920058fed3
2
index.js
2
index.js
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue