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

Function getCounterCount

src/services/serverstatsService.js:67–80  ·  view source on GitHub ↗
(guild, type)

Source from the content-addressed store, hash-verified

65}
66
67export async function getCounterCount(guild, type) {
68 const stats = await getGuildCounterStats(guild);
69
70 switch (type) {
71 case 'members':
72 return stats.totalCount;
73 case 'bots':
74 return stats.botCount;
75 case 'members_only':
76 return stats.humanCount;
77 default:
78 return null;
79 }
80}
81
82function isValidCounterShape(counter) {
83 return Boolean(

Callers 1

updateCounterFunction · 0.85

Calls 1

getGuildCounterStatsFunction · 0.85

Tested by

no test coverage detected