Hope this works. Time will tell... or not

This commit is contained in:
Christopher Cookman 2022-07-23 22:13:59 -06:00
parent e56850ce2c
commit 6743ed636b
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -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
}
]})
})