chat

package
v0.53.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chat

type Chat struct {
	URL        *url.URL
	SplitCount int
}

func InitChatProvider

func InitChatProvider(config ChatConfig) (*Chat, error)

func (*Chat) CanHandleMessage

func (chat *Chat) CanHandleMessage(_ providers.Message) bool

func (*Chat) HandleMessage

func (chat *Chat) HandleMessage(message providers.Message) error

func (*Chat) SendMessage

func (chat *Chat) SendMessage(message providers.Message) error

type ChatConfig

type ChatConfig struct {
	Url        string
	SplitCount int
}

type ChatMessage

type ChatMessage struct {
	Text string `json:"text"`
}

func (*ChatMessage) GetContent

func (msg *ChatMessage) GetContent() string

Jump to

Keyboard shortcuts

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