twitchbee

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package twitchbee is a Bee that can connect to Twitch.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TwitchBee

type TwitchBee struct {
	bees.Bee
	// contains filtered or unexported fields
}

TwitchBee is a Bee that can connect to Twitch.

func (*TwitchBee) Action

func (mod *TwitchBee) Action(action bees.Action) []bees.Placeholder

Action triggers the action passed to it.

func (*TwitchBee) ReloadOptions

func (mod *TwitchBee) ReloadOptions(options bees.BeeOptions)

ReloadOptions parses the config options and initializes the Bee.

func (*TwitchBee) Run

func (mod *TwitchBee) Run(eventChan chan bees.Event)

Run executes the Bee's event loop.

type TwitchBeeFactory

type TwitchBeeFactory struct {
	bees.BeeFactory
}

TwitchBeeFactory is a factory for TwitchBees.

func (*TwitchBeeFactory) Actions

func (factory *TwitchBeeFactory) Actions() []bees.ActionDescriptor

Actions describes the available actions provided by this Bee.

func (*TwitchBeeFactory) Description

func (factory *TwitchBeeFactory) Description() string

Description returns the description of this Bee.

func (*TwitchBeeFactory) Events

func (factory *TwitchBeeFactory) Events() []bees.EventDescriptor

Events describes the available events provided by this Bee.

func (*TwitchBeeFactory) ID

func (factory *TwitchBeeFactory) ID() string

ID returns the ID of this Bee.

func (*TwitchBeeFactory) Image

func (factory *TwitchBeeFactory) Image() string

Image returns the filename of an image for this Bee.

func (*TwitchBeeFactory) LogoColor

func (factory *TwitchBeeFactory) LogoColor() string

LogoColor returns the preferred logo background color (used by the admin interface).

func (*TwitchBeeFactory) Name

func (factory *TwitchBeeFactory) Name() string

Name returns the name of this Bee.

func (*TwitchBeeFactory) New

func (factory *TwitchBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface

New returns a new Bee instance configured with the supplied options.

func (*TwitchBeeFactory) Options

func (factory *TwitchBeeFactory) Options() []bees.BeeOptionDescriptor

Options returns the options available to configure this Bee.

func (*TwitchBeeFactory) States

func (factory *TwitchBeeFactory) States() []bees.StateDescriptor

States returns the state values provided by this Bee.

Jump to

Keyboard shortcuts

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