MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / resolveFailAction

Function resolveFailAction

pmcaptcha/pmcaptcha.ts:103–107  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

101 "白名单": PassAction.WL,
102};
103
104function resolveFailAction(s: string): FailAction | null {
105 const lower = s.toLowerCase();
106 if ((Object.values(FailAction) as string[]).includes(lower)) return lower as FailAction;
107 return FAIL_ACTION_CN_MAP[s] ?? null;
108}
109
110function resolvePassAction(s: string): PassAction | null {

Callers 1

pmcaptchaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected