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

Function getRemarkFromMsg

netease/netease.ts:40–44  ·  view source on GitHub ↗
(msg: Api.Message | string, n: number)

Source from the content-addressed store, hash-verified

38}
39
40// 解析网易云链接获取ID
41function extractSongId(text: string): string | null {
42 const idMatch = text.match(/(?:song\?id=|\/song\/)(\d+)/);
43 return idMatch ? idMatch[1] : null;
44}
45
46async function ensureBotReady(msg: Api.Message) {
47 const client = msg.client!;

Callers 1

NeteasePluginClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected