Estoy intentando crear un comando que mantenga la cuenta de los duelos que se dan entre dos personas en el chat actualmente el comando está asi:
$(eval var q = "$(query)".replace(/^@/g, '').toLowerCase(); var contador1 = $(count); var contador2 = $(count); if (q === "unbanc0") { contador1++; "El recuento actual es unbanc0 " + contador1 + " - " + contador2 + " Thomma"; } else if (q === "thomma") { contador2++; "El recuento actual es unbanc0 " + contador1 + " - " + contador2 + " Thomma"; } else { "Quien ganó? unbanc0 o Thomma"; })
The problem is that both counters are always incremented, any idea how to solve it?
How to create a command with 2 different counters?
2 replies
Hey @Icy Dragon!
@Stellar Raccoon is absolutely right, but I've solved this issue in the past using a third party API:
/t/multiple-death-counters-and-stream-death-total-with-stream-death-reset/153…
Note the warning about not providing further support to implement such command.