mixin

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

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

func Init

func Init(ctx context.Context, name string, cfg config.MixinConfig) (*Bot, error)

func (*Bot) GetMessageChan

func (b *Bot) GetMessageChan(ctx context.Context) <-chan *service.Message

func (*Bot) GetName added in v0.1.0

func (b *Bot) GetName() string

func (*Bot) HandleResult added in v0.0.9

func (b *Bot) HandleResult(req *service.Message, r *service.Result)

type Message added in v0.1.1

type Message struct {
	Content string
	UserID  string
}

Jump to

Keyboard shortcuts

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