MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / getCountingGameConfig

Function getCountingGameConfig

src/services/countingGameService.js:201–209  ·  view source on GitHub ↗
(client, guildId)

Source from the content-addressed store, hash-verified

199}
200
201export async function getCountingGameConfig(client, guildId) {
202 try {
203 const rawState = await client.db.get(getStorageKey(guildId));
204 return normalizeCountingGame(rawState);
205 } catch (error) {
206 logger.error('Failed to load counting game config:', { guildId, error });
207 return normalizeCountingGame();
208 }
209}
210
211export async function saveCountingGameConfig(client, guildId, state) {
212 const normalized = normalizeCountingGame(state);

Callers 5

executeFunction · 0.90
handleCountingGameFunction · 0.90
disableCountingGameFunction · 0.85
resetCountingGameFunction · 0.85
recordCorrectCountFunction · 0.85

Calls 3

getStorageKeyFunction · 0.85
normalizeCountingGameFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected