Hope this works. Time will tell... or not
This commit is contained in:
parent
e56850ce2c
commit
6743ed636b
8
index.js
8
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
|
||||
}
|
||||
]})
|
||||
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue