MCPcopy Index your code
hub / github.com/TeleBoxOrg/TeleBox_Plugins / modeLabel

Function modeLabel

pmcaptcha/pmcaptcha.ts:812–819  ·  view source on GitHub ↗
(m: CaptchaMode)

Source from the content-addressed store, hash-verified

810 return {
811 [CaptchaMode.MATH]: "算术验证",
812 [CaptchaMode.TEXT]: "关键词验证",
813 [CaptchaMode.IMG_DIGIT]: "图片验证(纯数字)",
814 [CaptchaMode.IMG_MIXED]: "图片验证(字母+数字)",
815 }[m] ?? m;
816}
817
818function mathQuestion(): { question: string; answer: string } {
819 const rand = (min: number, max: number) => Math.floor(Math.random() * (max - min + 1)) + min;
820 const type = rand(0, 5);
821
822 if (type === 0) {

Callers 1

pmcaptchaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected