Skip to content

Track chat command usage in stats json file #356

Description

@jmakhack

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthacktoberfestThis issue qualifies for the hacktoberfest eventhelp wantedExtra attention is neededjavaPull requests that update Java codeup for grabsAny issue that is up for grabs

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions