vote

package
v0.0.0-...-dc940fa Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SecondsPerVote = 20
)

Variables

View Source
var Votes = map[string]VoteInfo{
	"map":      {voteslist.MapVote, voteslist.MapMessage, "Changing map to %s", "map [mapname]^3"},
	"cycle":    {voteslist.Cyclemap, voteslist.CyclemapMessage, "Cycling to %s", "cycle^3"},
	"cyclemap": {voteslist.Cyclemap, voteslist.CyclemapMessage, "Cycling to %s", "cycle^3"},
	"extend":   {voteslist.Extend, voteslist.ExtendMessage, "Extend %d minute(s)", "extend [minutes*]^3. Default: ^61h^3"},
	"reload":   {voteslist.Reload, noFormatting, "Reload", "reload"},
	"nextmap":  {voteslist.Nextmap, voteslist.MapMessage, "Changing nextmap to %s", "nextmap [mapname]^3"},
}

Functions

func InitVoteSystem

func InitVoteSystem(voteChannel <-chan models.Vote, c *appcontext.AppContext)

Types

type VoteInfo

type VoteInfo struct {
	Usage string
	// contains filtered or unexported fields
}

type VoteSystem

type VoteSystem struct {
	CanVote bool
	Cancel  bool
	VoteYes map[string]int // use of map cause golang has no set
	VoteNo  map[string]int // use of map cause golang has no set
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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