MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / normalizeCommandName

Function normalizeCommandName

src/utils/abuseProtection.js:46–48  ·  view source on GitHub ↗
(commandName)

Source from the content-addressed store, hash-verified

44}
45
46function normalizeCommandName(commandName) {
47 return String(commandName || '').trim().toLowerCase();
48}
49
50function getCommandPolicy(command) {
51 const protection = command?.abuseProtection || {};

Callers 4

getProtectionKeyFunction · 0.85
recordBlockedAttemptFunction · 0.85
isRiskyCommandFunction · 0.85
enforceAbuseProtectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected