chatbot

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatBot

type ChatBot struct {
	Cfg config.ChatBot
	// contains filtered or unexported fields
}

func NewChatBot

func NewChatBot(ctx context.Context, cfg config.ChatBot, logError *log.Logger) (*ChatBot, error)

func (*ChatBot) LoggedIn added in v0.4.0

func (cb *ChatBot) LoggedIn() (bool, error)

func (*ChatBot) Login

func (cb *ChatBot) Login(username string, password string) ([]*http.Cookie, error)

func (*ChatBot) Logout

func (cb *ChatBot) Logout() error

func (*ChatBot) RestartChatStream added in v0.4.2

func (cb *ChatBot) RestartChatStream() error

func (*ChatBot) StartAllMessages added in v0.4.0

func (cb *ChatBot) StartAllMessages() error

func (*ChatBot) StartChatStream added in v0.2.0

func (cb *ChatBot) StartChatStream() error

func (*ChatBot) StartMessage

func (cb *ChatBot) StartMessage(id string) error

func (*ChatBot) StopAllMessages

func (cb *ChatBot) StopAllMessages() error

func (*ChatBot) StopChatStream added in v0.2.0

func (cb *ChatBot) StopChatStream() error

func (*ChatBot) StopMessage

func (cb *ChatBot) StopMessage(id string) error

Jump to

Keyboard shortcuts

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