Create an editable counter?

I tried the method of having one counter, and then another command that edits the counter command. But nightbot just spits out [Invalid Variable] whenever I do something like this: !setdeaths 4. Is there any way to fix this?

1 Like

Try this:
!commands add !setdeaths -a=!commands edit !deaths Deaths: $(query)

Make sure the command !deaths exist. (!commands add !deaths x)

Now you can set deaths with for example: !setdeaths 10
!deaths will return: Deaths: 10

That worked, thank you! Is there any way to stop nightbot from replying saying he’s edited the command? Kind of clogs up the chat.

Nice! I dont think thats possible.

1 Like

I would also recommend making the !setdeaths moderator only to prevent users from editing it.

1 Like