Iโm working on an easy to use command for a death counter. I just canโt wrap my head around it and Iโm a bit stuck.
What I want to happen is !setdeaths to count the amount of deaths, and !deaths to print that amount with some fancy text. I donโt know if this is somehow possible.
!addcom !setdeaths $(count)
!addcom !deaths ๐ [...] Deaths so far ๐
I want to prevent that moderators need to change the count manually with a command like this:
Then you create a command that will edit the deaths command with a count variable:
!commands add !setdeaths -ul=mod -a=!commands edit !deaths ๐ $(count) Deaths so far ๐
Feel free to change the names or do any modifications that you want. If you want people to be able to input a number instead of using a counter then replace $(count) with $(1) in !setdeaths
I thought about that but wouldnโt that change the !deaths command to count when it is used, and basically do the next:
!deaths
10 Deaths so far
!deaths
11 Deaths so far
Like I said in the first post I made: I want to prevent that moderators need to manual enter the number the streamer died. So using $(1) is not an option for that.
No, it wonโt do that because the $(count) is not tied to !deaths its tied to !setdeaths. When !setdeaths is ran the $(count) is replaced with the numerical value for the count, editing !deaths with the value. Allowing !deaths to be ran any number of times without the number changing.