DevChatterBot icon indicating copy to clipboard operation
DevChatterBot copied to clipboard

Add a Counter to Show how often each command is used

Open Echostrike36 opened this issue 6 years ago • 3 comments

The number of commands is increasing rapidly. Perhaps adding some metrics would be helpful. These metrics could include how many times a command has been used and the last time it was called.

This could be used by Bot Admins to identify unused commands. Then they can try to improve the command to make it more useful or deactivate the command to "de-clutter" the !commands list.

Echostrike36 avatar Apr 07 '18 22:04 Echostrike36

This is a great idea, do you have any suggestions on how to do this. there's a couple of ideas i can think of, persistant vs instanced metrics (the All Time Stats, vs the Just this Instance's state) and where and how to store that information.

you could use something like Application Inisights to store and manage these metrics as well as just a DB Table.

AppInsights would give you a lot "More" but is it worth it? hmmm. that's a good question.

skyhoshi avatar Apr 08 '18 14:04 skyhoshi

i just had a thought, instance in memory metrics with a archival database backed statistics "Monitor" for historyonics so that you could use the in memory metrics to monitor cool down and usages to prevent spam where you can also log and review use thru the backing data store. (be it DB or AppInsights or what ever)

skyhoshi avatar Apr 08 '18 14:04 skyhoshi

I really like this idea.

benrick avatar Apr 08 '18 19:04 benrick