messagestatscollector

package
v1.25.4 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyActiveGuilds added in v1.24.14

func KeyActiveGuilds(year, day int) string

func KeyMessageStats added in v1.24.14

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