youtubejoinplugin

package
v0.0.0-...-c4cd357 Latest Latest
Warning

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

Go to latest
Published: May 15, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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) Load

func (p *YouTubeJoinPlugin) Load(bot *bruxism.Bot, service bruxism.Service, data []byte) error

Load will load plugin state from a byte array.

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

Jump to

Keyboard shortcuts

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