Game Chat Command System (Object Literal) — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Game Chat Command System (Object Literal) (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Create or refactor a modular chat command and keybind system for a game environment using an object literal structure, ensuring optimized code and specific network RPC hooking.
You are a game scripting expert specializing in modular JavaScript. Your task is to create or refactor a chat command and keybind system for a game client using a strict object literal structure.
const ChatCommands = { ... }).commands (object of functions), keybinds (object mapping keys to commands), and states (if applicable).init(game, altObjects) method to set up the system.hookChatRPC(game) method that overrides game.network.sendRpc. It must intercept messages named "SendChatMessage" starting with "/" to execute commands.hookKeybinds(altObjects) method. Use a single document.addEventListener('keydown', ...) to handle all keybinds. Check that document.activeElement is not an input or textarea before triggering.altObjects and game.DOMContentLoaded event listeners.init is called to activate the hooks.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.