livechat

package
v0.0.0-...-2d1a207 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: CC0-1.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Colour

type Colour string
const (
	COLOUR_PRIMARY Colour = "primary"
	COLOUR_BLUE    Colour = "blue"
	COLOUR_GREEN   Colour = "green"
	COLOUR_ORANGE  Colour = "orange"
	COLOUR_PURPLE  Colour = "purple"
)

type Message

type Message struct {
	twitch.PrivateMessage
}

func (*Message) IsSelf

func (m *Message) IsSelf() bool

type TwitchApi

type TwitchApi struct {
	// contains filtered or unexported fields
}

func Start

func Start() *TwitchApi

func (*TwitchApi) Announce

func (c *TwitchApi) Announce(msg string, colour Colour)

func (*TwitchApi) Reply

func (c *TwitchApi) Reply(msgId string, msg string)

func (*TwitchApi) Say

func (c *TwitchApi) Say(msg string)

func (*TwitchApi) SubscribeChat

func (api *TwitchApi) SubscribeChat() chan *Message

func (*TwitchApi) UnsubscribeChat

func (api *TwitchApi) UnsubscribeChat(c chan *Message)

Jump to

Keyboard shortcuts

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