Documentation ¶
Index ¶
- func ChannelAllocationStream(channelAllocs *ChannelAllocationMap, ...) error
- func CountMap(m map[string]int) int
- func GetChannelsFromList(g *discordgo.Guild, filterChans []string) []*discordgo.Channel
- func SaveIntermediateResult(progstate taskstate.TaskProgressState, prog *taskstate.Progress, ...) error
- type ChannelAllocationMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChannelAllocationStream ¶
func GetChannelsFromList ¶
Given a guild and a list of channels, return the channels that are in the list, removing duplicates
This is useful for creating a set of channels to allocate messages counts to etc.
func SaveIntermediateResult ¶
func SaveIntermediateResult( progstate taskstate.TaskProgressState, prog *taskstate.Progress, data map[string]any, ) error
SaveIntermediateResult is a helper method to save an intermediate result to database within the state
Types ¶
type ChannelAllocationMap ¶
type ChannelAllocationMap struct { *orderedmap.OrderedMap[string, int] }
func (ChannelAllocationMap) TotalAllocations ¶
func (c ChannelAllocationMap) TotalAllocations() int
Click to show internal directories.
Click to hide internal directories.