Documentation ¶
Index ¶
- Constants
- func New(discord *bruxism.Discord) bruxism.Plugin
- type MusicPlugin
- func (p *MusicPlugin) Help(bot *bruxism.Bot, service bruxism.Service, message bruxism.Message, ...) []string
- func (p *MusicPlugin) Load(bot *bruxism.Bot, service bruxism.Service, data []byte) (err error)
- func (p *MusicPlugin) Message(bot *bruxism.Bot, service bruxism.Service, message bruxism.Message)
- func (p *MusicPlugin) Name() string
- func (p *MusicPlugin) Save() ([]byte, error)
- func (p *MusicPlugin) Stats(bot *bruxism.Bot, service bruxism.Service, message bruxism.Message) []string
Constants ¶
View Source
const ( Skip controlMessage = iota Pause Resume )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MusicPlugin ¶
type MusicPlugin struct { sync.Mutex VoiceConnections map[string]*voiceConnection // contains filtered or unexported fields }
func (*MusicPlugin) Help ¶
func (p *MusicPlugin) Help(bot *bruxism.Bot, service bruxism.Service, message bruxism.Message, detailed bool) []string
Help returns a list of help strings that are printed when the user requests them.
func (*MusicPlugin) Save ¶
func (p *MusicPlugin) Save() ([]byte, error)
Save will save plugin state to a byte array.
Click to show internal directories.
Click to hide internal directories.