controller

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionData

type SessionData struct {
	Mutex *sync.Mutex

	XP       *xp.System
	Roles    roles.Assigner
	AntiSpam *antispam.SpamTracker

	// Plugins:
	Blacklist *plugs.Blacklist
	Clear     plugs.Eraser

	Rules *plugs.Agreement
	// contains filtered or unexported fields
}

SessionData holds the data needed to complete the requested transactions

func NewSessionData

func NewSessionData(s *dg.Session) *SessionData

NewSessionData creates a SessionData

func (*SessionData) NewMessage

func (sd *SessionData) NewMessage(s *dg.Session, msg *dg.MessageCreate)

NewMessage waits for a ne message to be sent in a the Discord guild This kicks off a Goroutine to free up the mutex set by discordgo `AddHandler` method.

Jump to

Keyboard shortcuts

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