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

Function getDefaultServer

speedtest/speedtest.ts:208–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

206}
207
208function getDefaultServer(): number | null {
209 const cfg = readConfig();
210 return cfg.default_server_id ?? null;
211}
212
213function saveDefaultServer(serverId: number | null): void {
214 writeConfig({ default_server_id: serverId });

Callers 1

speedtestFunction · 0.85

Calls 1

readConfigFunction · 0.85

Tested by

no test coverage detected