messagestatscollector

package
v1.32.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyActiveGuilds

func KeyActiveGuilds(year, day int) string

func KeyMessageStats

func KeyMessageStats(guildID int64, year, day int) string

func RoundHour

func RoundHour(t time.Time) time.Time

Types

type Collector

type Collector struct {
	MsgEvtChan chan *discordgo.Message
	// contains filtered or unexported fields
}

Collector is a message stats collector which will preiodically update the serberstats messages table with stats

func NewCollector

func NewCollector(l *logrus.Entry, updateInterval time.Duration) *Collector

NewCollector creates a new Collector

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL