Skip to content

Random Warning message - #422

Open
Olikli55 wants to merge 2 commits into
curbox-app:kt-rewritefrom
Olikli55:kt-rewrite
Open

Olikli55 wants to merge 2 commits into
curbox-app:kt-rewritefrom
Olikli55:kt-rewrite

Conversation

@Olikli55

@Olikli55 Olikli55 commented Sep 9, 2026

Copy link
Copy Markdown

I have added functionality that makes random messages possible:

  • changed the data structure to support List
  • input parsing using ", "
  • default message in the config is "Message 1", "Message 2"
  • in config it shows the list by joining each cell using ", "

Note: i am terrible with UI i just want somebody to add an little text (or something idk) that would indicate to the user that he can use ", " to make the app chose a random message every time a warning pops up. Thanks for understanding.

One last questions:
WHy are comments prohibited?
"Only use comments when absolutely necessary or for documenting complex logic."
I have spent more than 3 hours just trying to understand this codebase in the first place. it took more work just to search and find all of the functions to patch than actually coding. For people like me (first time seeing this codebase) it would be more than ideal to include some amount of comments to explain what each class does and so on...

Thank you for the time. :)

- Change message field from String to List<String>

- Update display and editor to pick a random message

- Adjust comparator logic for list comparison

- No UI support, just hardcoded list
* changed default message
* text to show the user that random message are possible was altered.
* in config it now dysplasia each random message divided by ", "
Note: i am terrible with UI so feel free to change this to whatever you want
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