Documentation ¶
Index ¶
- Constants
- func New() criuscommander.Platform
- type Twitch
- func (t *Twitch) Close() error
- func (t *Twitch) GenHelp(_ interface{}, m *criuscommander.MessageContext) error
- func (t *Twitch) GetClient() interface{}
- func (t *Twitch) GetPlatformType() criuscommander.PlatformType
- func (t *Twitch) JoinChannel(i interface{}) error
- func (t *Twitch) LeaveChannel(i interface{}) error
- func (t *Twitch) Open(ctx context.Context) error
- func (t *Twitch) RegisterEvents(publisher EventBus.BusPublisher) error
- func (t *Twitch) RegisterMessageHandler(f func(string, *criuscommander.MessageContext)) error
- func (t *Twitch) Setup(token string) error
Constants ¶
View Source
const ( EventTwitchConnected = "Commander.Twitch:Connect" EventTwitchNotice = "Commander.Twitch:Notice" EventChatClear = "Commander.Twitch.Chat:Clear" EventMessageClear = "Commander.Twitch.Message:Clear" EventPrivateMessage = "Commander.Twitch.Message.Private:Create" EventWhisperMessage = "Commander.Twitch.Message.Whisper:Create" EventRoomState = "Commander.Twitch.Room.State" EventUserJoin = "Commander.Twitch.User:Join" EventUserPart = "Commander.Twitch.User:Part" EventUserNotice = "Commander.Twitch.User.Notice" EventUserState = "Commander.Twitch.User.State" EventGlobalUserState = "Commander.Twitch.User.Global.State" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Twitch ¶
type Twitch struct {
// contains filtered or unexported fields
}
func (*Twitch) GetPlatformType ¶
func (t *Twitch) GetPlatformType() criuscommander.PlatformType
func (*Twitch) JoinChannel ¶
func (*Twitch) LeaveChannel ¶
func (*Twitch) RegisterEvents ¶
func (t *Twitch) RegisterEvents(publisher EventBus.BusPublisher) error
func (*Twitch) RegisterMessageHandler ¶
Click to show internal directories.
Click to hide internal directories.