jmakhack / hydrate-reminder

RuneLite plugin that sends reminders to take occasional hydration breaks.
https://runelite.net/plugin-hub/show/hydrate-reminder
BSD 2-Clause "Simplified" License
26 stars 57 forks source link

Track chat command usage in stats json file #356

Open jmakhack opened 2 years ago

jmakhack commented 2 years ago

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.

ron-huberfeld commented 2 years ago

Hi @jmakhack Can I have this one?

jmakhack commented 2 years ago

Go for it @ron-huberfeld :)

jmakhack commented 1 year ago

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

ron-huberfeld commented 1 year ago

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

jmakhack commented 1 year ago

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

ron-huberfeld commented 1 year ago

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