hydrate-reminder icon indicating copy to clipboard operation
hydrate-reminder copied to clipboard

Track chat command usage in stats json file

Open jmakhack opened this issue 1 year ago • 6 comments

Feature Reasoning

For future potential features, it would be nice to track how many times the player has used every chat command.

Feature Description

This enhancement is to increase a counter in hydrateReminderStats.json whenever any chat command is used. The result json should look like the following:

{
    "commandCounts" : {
        "help": 5,
        "next": 2,
        "prev": 11,
        "reset": 4,
        "total": 8,
        "party": 3,
        "hydrate": 8
    },
    "totalHydrateCount": 0
}

Add unit tests and avoid repeating logic where possible. When new commands are added in the future, this logic should automatically be applied without any extra code.

Possible Alternatives

Any alternatives to the proposed schema may be acceptable.

Additional Context

Note: This work cannot be started until #350 gets merged in first.

Please refer to CONTRIBUTING.md for info on how to setup, build, run, and test this project.

jmakhack avatar Oct 14 '22 12:10 jmakhack

Hi @jmakhack Can I have this one?

ron-huberfeld avatar Oct 16 '22 12:10 ron-huberfeld

Go for it @ron-huberfeld :)

jmakhack avatar Oct 16 '22 12:10 jmakhack

@ron-huberfeld, just checking in. Are you still planning to work on this?

jmakhack avatar Nov 04 '22 08:11 jmakhack

Yes. Is it urgent. I'm a bit busy at the moment but still want to do it.

ron-huberfeld avatar Nov 04 '22 20:11 ron-huberfeld

@ron-huberfeld, no worries. Just checking in on all the assigned issues :)

jmakhack avatar Nov 04 '22 21:11 jmakhack

Hi @jmakhack is this issue still open and count for hacktoberfest 2023?

ron-huberfeld avatar Oct 01 '23 17:10 ron-huberfeld