stats

package
v0.0.0-...-f3179c4 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatMessageRankings

func FormatMessageRankings(r storage.TopMessages, s *discord.Session) (embed *discordgo.MessageEmbed, err error)

FormatMessageRankings formats a TopMessages into a discord embed message

Types

type Aggregator

type Aggregator struct {
	Config  *types.Config
	Discord *discord.Session
	Storage storage.Storer
	Forum   *forum.ForumClient
	// contains filtered or unexported fields
}

Aggregator collects statistics about messages and users

func (*Aggregator) Init

func (a *Aggregator) Init(
	config *types.Config,
	discord *discord.Session,
	api storage.Storer,
	fc *forum.ForumClient,
) (name string, err error)

func (*Aggregator) Register

func (a *Aggregator) Register() (actions []common.Action)

Jump to

Keyboard shortcuts

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