How to make a wordcount "headshot" command and show the counter

Asked Mar 12, 2023·3 replies·Last activity 3 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.

Hello! i was trying to make a command that can track how many times a word has been said. I know about this command:

!addcom -cd=5 Headshot $(eval temp=$(count); )

But that command only counts secretly and i need to show that number, so how can i show the Count number in other command? Maybe !headshot Mikey has $(query) headshots ?
Anythings helps!

3 replies

Hey @Serene Buffalo!

You simply use $(count) in the middle of the sentence:

!addcom !headshot -ul=mod Mikey has $(count) headshots!

I advise reading the documentation.

Well I know $(count) could work, but that only works when command is called, correct? I mean the $(count) command increased by one only when this is called, I want to secretly count the headshot word and then use a command to show the secretly counter, is that possible?