Decrease count with command

Asked Jun 6, 2020·1 reply·Last activity 6 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.

Hi guys! Hope everyone is alright.

So, I have a question that I don't know if its possible.

I have 3 commands: !contador , !addcontador , !resetcontador.

The way I created them was:
!contador: !commands add !contador Contador:
!addcontador: !commands add !addcontador -a=!commands edit !contador Contador: $(count)
!resetcontador: !commands add !resetcontador -a=!commands edit !addcontador \-c=0

I wanted a command to decrease de count. So, if I have "Contador: 2", I want it to show "Contador: 1".

Is it possible?

Thanks!

1 reply

Hey @Jovial Otter!

Unfortunately, the $(count) variable can only go upwards, so there's no way to decrease it, sorry.