MCPcopy Create free account
hub / github.com/AudDMusic/RedditBot / addToStats

Function addToStats

main.go:56–61  ·  view source on GitHub ↗
(t string)

Source from the content-addressed store, hash-verified

54var statsMu = &sync.Mutex{}
55
56func addToStats(t string) int {
57 statsMu.Lock()
58 defer statsMu.Unlock()
59 stats[t]++
60 return stats[t]
61}
62
63func (r *auddBot) getPatreonSupporter(botMentioned, fullMatch bool) string {
64 if !botMentioned || !fullMatch {

Callers 1

getPatreonSupporterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected