Skip to content

feat: add whitelist support and configurable in-game command access mode#16

Merged
FaiThiX merged 2 commits intomasterfrom
feat/whitelist
Mar 10, 2026
Merged

feat: add whitelist support and configurable in-game command access mode#16
FaiThiX merged 2 commits intomasterfrom
feat/whitelist

Conversation

@FaiThiX
Copy link
Copy Markdown
Owner

@FaiThiX FaiThiX commented Mar 10, 2026

Adds flexible access control for in-game bot commands by introducing a whitelist
alongside the existing blacklist approach, plus a selectable access mode.

What changed:

  • Added new slash command /whitelist with subcommands:
    • add steamid
    • remove steamid
    • show
  • Added new slash command /ingameaccess with subcommands:
    • mode (blacklist | whitelist)
    • show
  • Added generalSettings.inGameCommandAccessMode with default blacklist.
  • Extended instance schema with whitelist.steamIds and migration handling for existing instances.
  • Updated in-game team message command gating:
    • blacklist mode: everyone allowed except blacklisted steam IDs.
    • whitelist mode: only whitelisted steam IDs allowed.
  • Added new EN localization keys for whitelist/access mode texts and logs.
  • Updated docs (commands.md, full_list_features.md) to include new commands and behavior.

Compatibility:

  • Backward compatible for existing installations.
  • Default behavior remains blacklist-based unless mode is explicitly changed.

Validation:

  • Syntax checks passed for changed JS files (node --check).
  • Type-check/tests passed via npm test -- --pretty false (tsc --noEmit).
  • Tested in-game command behavior for all obvious scenarios.

@FaiThiX FaiThiX self-assigned this Mar 10, 2026
@FaiThiX FaiThiX merged commit ffb9520 into master Mar 10, 2026
@FaiThiX FaiThiX deleted the feat/whitelist branch March 10, 2026 17:35
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