Need help with a count/eval command

Asked Mar 8, 2021·1 reply·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

I want to make a command in which I can use $(count) three times but it counts only one.
Example:
We have $(count) subs! There are $(eval 19 - $(count)) for our first goal and $(eval 47 - $(count)) for the big contest. Pls suscribe.

I mean this works for what I want, but every time add 3, 'cause I use $(count) 3 three times, I need only one add each time.

1 reply

Hiya, yeah you can store the $count value as variable inside the $eval, so it will only add one. Something like this:

js
$(eval var c = `$(count)`; `We have ${c} subs! There are ${19-c} for our first goal and ${47-c} for the big contest. Pls suscribe.`)