Can I do simple math in commands?

Is it possible to do some simple math within a command without having a customAPI, and have variables that would increment down when a command is called instead of up like $count?

I am going to be streaming No Man’s Sky when it comes out, and thought it would be a cool idea to have a !planet command that counts down how many I have left to find. Really, it would be an excercise in the scale of a universe, since there are 18,446,744,073,709 551,616 (also known as 2 ^64), planets in the game. Output would be something along the lines of:

Slient_Assassin: !planet
Nightbot: That’s [X] planets down, $(18,446,744,073,709,551,615 – [X]) to go!

I would also like to be able to have a separate command for viewers to call, like !explored, that wouldn’t increment the counter.

EDIT: Also, calling $(count) multiple times in the same command ends up incrementing it more than once each call. I was testing with $(count) planets down, (18,446,744,073,709,551,616 - $(count)) planets to go. If I call this, It outputs “1 planets down, 18,446,744,073,709,551,616 - 2) planets to go.”

Same situation I responded to here:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.