Skip to content

feat(bottools): add player data and data gathering functions#1533

Merged
mkmccarty merged 1 commit intomainfrom
virtue-command
Sep 18, 2025
Merged

feat(bottools): add player data and data gathering functions#1533
mkmccarty merged 1 commit intomainfrom
virtue-command

Conversation

@mkmccarty
Copy link
Owner

This commit adds a new PlayerData struct and gatherData function to the bottools package. The PlayerData struct represents player-specific data, including their name, tokens, and various boolean flags. The gatherData function takes an InputData struct and generates two strings, data and data2, which represent the serialized form of the input data.

The main changes in this commit are:

  1. Added PlayerData struct to represent player-specific data.
  2. Implemented the gatherData function to serialize the input data into two strings, data and data2.
  3. Added helper functions boolToString, convertString, and remDash to assist with data conversion and formatting.

These changes are important as they provide the necessary functionality to handle and serialize player data, which is a key requirement for the bot's functionality.

This commit adds a new `PlayerData` struct and `gatherData` function to the `bottools` package. The `PlayerData` struct represents player-specific data, including their name, tokens, and various boolean flags. The `gatherData` function takes an `InputData` struct and generates two strings, `data` and `data2`, which represent the serialized form of the input data.

The main changes in this commit are:

1. Added `PlayerData` struct to represent player-specific data.
2. Implemented the `gatherData` function to serialize the input data into two strings, `data` and `data2`.
3. Added helper functions `boolToString`, `convertString`, and `remDash` to assist with data conversion and formatting.

These changes are important as they provide the necessary functionality to handle and serialize player data, which is a key requirement for the bot's functionality.
@mkmccarty mkmccarty merged commit d6e743d into main Sep 18, 2025
6 of 12 checks passed
@mkmccarty mkmccarty deleted the virtue-command branch September 18, 2025 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant