Skip to content

TeamRandomizer: strict command match & code style#420

Open
mikebjoyce wants to merge 1 commit into
Team-Silver-Sphere:masterfrom
mikebjoyce:master
Open

TeamRandomizer: strict command match & code style#420
mikebjoyce wants to merge 1 commit into
Team-Silver-Sphere:masterfrom
mikebjoyce:master

Conversation

@mikebjoyce

Copy link
Copy Markdown

Enforce an exact, trimmed, case-insensitive chat command match to prevent accidental team randomization when admins mention the command word in normal chat (e.g., "I'm going to randomize the teams"). Adds an explanatory comment and guard check. Also applies stylistic cleanups and formatting: convert quotes to double quotes, add trailing commas, and reformat argument/await lines for readability.

Enforce an exact, trimmed, case-insensitive chat command match to prevent accidental team randomization when admins mention the command word in normal chat (e.g., "I'm going to randomize the teams"). Adds an explanatory comment and guard check. Also applies stylistic cleanups and formatting: convert quotes to double quotes, add trailing commas, and reformat argument/await lines for readability.
@mikebjoyce mikebjoyce requested a review from werewolfboy13 as a code owner May 5, 2026 14:50
@mikebjoyce

Copy link
Copy Markdown
Author

The accidental trigger occurs in admin chat specifically, not normal player chat, which is already blocked by an earlier guard. This fix ensures only a bare !randomize message in admin chat triggers the shuffle, not sentences that happen to contain the command word.

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