Trying to create a "count" command with custom inputs

Asked Oct 7, 2020·2 replies·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.

Im trying to create a command for darksouls to count how many souls ive lost, where the user (in this case, a moderator) will type a number after calling the command like this: !almas 100 and the command will store the total amount of souls in a variable.
I thought I could do it like this: !addcom !almas $(eval let almas = 0; almas = almas + $(query); Ha perdido ${almas}; ) but it doesn't work.
Everytime I call the command it resets the variable almas to 0.
Any Ideas?

2 replies