bot

package
v0.0.0-...-88bfa00 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 6 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 Must

func Must(bot *Bot, err error) *Bot

func NewBot

func NewBot(name, token string) (*Bot, error)

func (*Bot) Run

func (bot *Bot) Run()

func (*Bot) RunUntil

func (bot *Bot) RunUntil(exit <-chan struct{}, wg *sync.WaitGroup)

func (*Bot) Seed

func (bot *Bot) Seed(seed int64)

func (*Bot) SetLogger

func (bot *Bot) SetLogger(logger *log.Logger)

func (*Bot) WithCommands

func (bot *Bot) WithCommands(commands ...string) *Responder

func (*Bot) WithKeywords

func (bot *Bot) WithKeywords(keywords ...string) *Responder

type Responder

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

func (*Responder) Done

func (rr *Responder) Done() *Bot

func (*Responder) WithLines

func (rr *Responder) WithLines(lines ...string) *Responder

func (*Responder) WithStickerSet

func (rr *Responder) WithStickerSet(stickerSetName string) *Responder

Jump to

Keyboard shortcuts

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