Closed dadodiciassette closed 3 years ago
You can construct any strings you want from the data
object, for example:
onLogUpdate: (data) => {
const event = Object.keys(data)[0]
const eventData = data[event]
if (event === 'Kill') {
console.log(`${eventData.killerNick} killed ${eventData.victimNick} using ${eventData.weapon}`)
}
}
I'll be closing this issue since it's not related to the library at all.
Hi guys sorry if I bother you, I'm not an good at programming but i really like this tool so that's why I'm asking you to help me. I made the following code that connects me to a game and sends me back the information as you see in the image. My question is how can I output that data like the real HLTV scorebot (for example only a line with: "EliGE killed falleN with AK47", or "olofmeister disconnected"). Thanks for your help