MCPcopy
hub / github.com/SYJun404/frank / fetchMatchHistory

Function fetchMatchHistory

src/lcu/aboutMatch.ts:5–10  ·  view source on GitHub ↗
(puuid: string, begIndex: number, endIndex: number)

Source from the content-addressed store, hash-verified

3
4// 辅助函数:处理单次请求
5const fetchMatchHistory = async (puuid: string, begIndex: number, endIndex: number): Promise<Games[]> => {
6 const uri = `/lol-match-history/v1/products/lol/${puuid}/matches?begIndex=${begIndex}&endIndex=${endIndex}`;
7 const matchList = await invoke<LcuMatchList| null>("get_match_list", { uri });
8 if (matchList === null) return [];
9 return matchList.games.games || [];
10}
11
12const delay = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));
13

Callers 2

splitRequestsFunction · 0.85
queryMatchHistoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected