Documentation ¶
Index ¶
- type YouTubeJoinPlugin
- func (p *YouTubeJoinPlugin) Check(channel string) bool
- func (p *YouTubeJoinPlugin) Help(bot *bruxism.Bot, service bruxism.Service, message bruxism.Message, ...) []string
- func (p *YouTubeJoinPlugin) Load(bot *bruxism.Bot, service bruxism.Service, data []byte) error
- func (p *YouTubeJoinPlugin) Message(bot *bruxism.Bot, service bruxism.Service, message bruxism.Message)
- func (p *YouTubeJoinPlugin) Monitor(channel string) error
- func (p *YouTubeJoinPlugin) Name() string
- func (p *YouTubeJoinPlugin) Run(bot *bruxism.Bot, service bruxism.Service)
- func (p *YouTubeJoinPlugin) Save() ([]byte, error)
- func (p *YouTubeJoinPlugin) Stats(bot *bruxism.Bot, service bruxism.Service, message bruxism.Message) []string
- func (p *YouTubeJoinPlugin) Unmonitor(channel string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type YouTubeJoinPlugin ¶
type YouTubeJoinPlugin struct { sync.RWMutex Channels map[string]bool // contains filtered or unexported fields }
YouTubeJoinPlugin is a plugin that monitors channels, and when they go live, will join the service
func New ¶
func New(ytLiveChannel *bruxism.YTLiveChannel) *YouTubeJoinPlugin
New will create a new YouTubeLive plugin.
func (*YouTubeJoinPlugin) Check ¶
func (p *YouTubeJoinPlugin) Check(channel string) bool
func (*YouTubeJoinPlugin) Help ¶
func (p *YouTubeJoinPlugin) 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 (*YouTubeJoinPlugin) Message ¶
func (p *YouTubeJoinPlugin) Message(bot *bruxism.Bot, service bruxism.Service, message bruxism.Message)
Message handler.
func (*YouTubeJoinPlugin) Monitor ¶
func (p *YouTubeJoinPlugin) Monitor(channel string) error
func (*YouTubeJoinPlugin) Name ¶
func (p *YouTubeJoinPlugin) Name() string
Name returns the name of the plugin.
func (*YouTubeJoinPlugin) Run ¶
func (p *YouTubeJoinPlugin) Run(bot *bruxism.Bot, service bruxism.Service)
Run will poll YouTube for channels going live and send messages.
func (*YouTubeJoinPlugin) Save ¶
func (p *YouTubeJoinPlugin) Save() ([]byte, error)
Save will save plugin state to a byte array.
func (*YouTubeJoinPlugin) Stats ¶
func (p *YouTubeJoinPlugin) Stats(bot *bruxism.Bot, service bruxism.Service, message bruxism.Message) []string
Stats will return the stats for a plugin.
func (*YouTubeJoinPlugin) Unmonitor ¶
func (p *YouTubeJoinPlugin) Unmonitor(channel string) error
Click to show internal directories.
Click to hide internal directories.