rate

package
v0.0.0-...-ad7117f Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

View Source
const (
	CorrectUsageValue = 2
	MentionValue      = 3
	OtherValue        = 2
)

Variables

This section is empty.

Functions

func AddRespec

func AddRespec(user *types.User, channel *types.Channel, rating int) int

AddRespec Add respec to the message, returns amount actually added

func GetRespec

func GetRespec(channel *types.Channel, scope types.Scope) (Leaderboard string, negativeUsers []string)

show 10 most RESPEC peep

func InitRatings

func InitRatings()

func RespecMessage

func RespecMessage(message *types.Message) int

RespecMessage evaluate messages

func RespecOther

func RespecOther(user *types.User, channel *types.Channel, rating int) (added int)

RespecOther Give respec by some other means, ie mentioning. Something that a user has no control and will only be applicable every 5 minutes

Types

type Rule

type Rule func(*types.Message) int

Jump to

Keyboard shortcuts

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