Can u make the count commands goes down

Asked Jan 7, 2022·1 reply·Last activity 4 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 know you can make nightbot count up by doing $(count)
so for example 10 hugs has been given
but can you make nightbot countdown
so for exemple 10 hugs go to 9 hugs

1 reply

Hey @Stripy Ox!

$(count) can only go up, however, if you know the maximum amount ahead of time, you can simply do:

$(eval MAXIMUM_AMOUNT-$(count))

So if your maximum amount is 10:

$(eval 10-$(count))