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

Function getSessionKey

music_hub/music_hub.ts:226–231  ·  view source on GitHub ↗
(msg: Api.Message)

Source from the content-addressed store, hash-verified

224
225function parseIndex(text?: string): number | null {
226 if (!text || !/^\d+$/.test(text)) return null;
227 const index = Number.parseInt(text, 10);
228 return index >= 1 ? index : null;
229}
230
231function clampPage(page: number, totalPages: number): number {
232 return Math.min(Math.max(page, 1), Math.max(totalPages, 1));
233}
234

Callers 4

getSessionMethod · 0.85
saveSessionMethod · 0.85
finishSongSendMethod · 0.85
handleCommandMethod · 0.85

Calls 1

idToStringFunction · 0.85

Tested by

no test coverage detected