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

Method loadRemoteMappings

subinfo/subinfo.ts:318–338  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

316
317 if (title.includes("Cloudflare") || title.includes("Just a moment")) {
318 return { website: baseUrl, websiteName: 'Cloudflare防御' };
319 } else if (title.includes("Access denied") || title.includes("404 Not Found")) {
320 return { website: baseUrl, websiteName: '非机场面板域名' };
321 }
322
323 return { website: baseUrl, websiteName: title || null };
324 }
325
326 } catch (e) {
327 // 忽略错误
328 }
329 return { website: null, websiteName: null };
330}
331
332class SubinfoPlugin extends Plugin {
333
334 description =
335 `📈 <b>订阅链接多维度查询工具</b>
336
337<b>使用方法:</b>
338• <code>${mainPrefix}subinfo [链接]</code> - 详细查询
339• <code>${mainPrefix}subinfo txt [链接]</code> - 详细查询,以TXT文件输出
340• <code>${mainPrefix}cha [链接]</code> - 简洁查询
341• <code>${mainPrefix}cha txt [链接]</code> - 简洁查询,以TXT文件输出

Callers 2

handleSubinfoMethod · 0.95
handleChaMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected