From 6743ed636ba23ae0ce9b447bafa57793001bc81d Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sat, 23 Jul 2022 22:13:59 -0600 Subject: [PATCH] Hope this works. Time will tell... or not --- index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 18ea530..0d0d1e2 100644 --- a/index.js +++ b/index.js @@ -35,7 +35,13 @@ tf2.on("systemMessage", (msg) => { }) tf2.on("itemBroadcast", (msg, username, wasDestruction, defindex) => { - console.log(`[TF2] New Item :\nMsg:${msg}\nUser:${username}\nDestroy?:${wasDestruction}`) + console.log(`[TF2] New Item :\nMsg:${msg}\nUser:${username}\nDestroy?:${wasDestruction}`); + pan_hook.send({content: wasDestruction?"@everyone":"",embeds: [ + { + description: msg, + color: wasDestruction?Discord.Colors.Red:Discord.Colors.Gold + } + ]}) })