How do I make a maths command?

I want to make a command that does maths such as !calculate 5+5. I want it to say the correct answer to the question, but I don’t know how. Please tell me what to do.

Just use the $(eval) variable:

!addcom !calculate $(eval)

Thanks man! This really helped me

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