I currently have a command that whenever someone types it it gets back to them with a message, but i want to have another command count the amount of times that command has been used. Is there a way to do that?
Using separate command to count another command's usage
2 replies
Hey @Steady Dragon!
It depends on whether you want to mask the amount of time the command has been used and then be able to check it through the dashboard, or if you want to display it within the command's response; but you won't be able to have a separate command to display that data.
First option, hide the counter and check it through the dashboard:
!addcom !commandName $(eval '$(count)'; 'YOUR_MESSAGE';)
Second option, display the counter within the response:
!addcom !commandName YOUR_MESSAGE. | This command has been used $(count) times.