Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectionManager ¶
type CollectionManager struct {
Collectors map[string][]*MessageCollector
}
CollectionManager is a mediator for message collectors.
func GetCollectionManager ¶
func GetCollectionManager() *CollectionManager
GetCollectionManager returns CollectionManager instance.
func (*CollectionManager) CancelCollector ¶
func (colMnger *CollectionManager) CancelCollector(channelID string, id uint16) error
CancelCollector cancels a message collector.
func (*CollectionManager) Dispatch ¶
func (colMnger *CollectionManager) Dispatch(msg *discordgo.Message)
Dispatch dispatches a message to the appropriate collectors.
func (*CollectionManager) NewCollector ¶
func (colMnger *CollectionManager) NewCollector(channelID string, sleepTime time.Duration, amnt int) *MessageCollector
NewCollector collects messages in the designated channel for the supplied amount of time.
Click to show internal directories.
Click to hide internal directories.