bot

package
v0.0.0-...-993899d Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug bool
	Logf  func(string, ...any)

	BotToken string // xoxb-...
	AppToken string // xapp-...
}

Config is the configuration for the Slack bot.

type SlackBot

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

SlackBot is a Slack bot.

func NewSlackBot

func NewSlackBot(config *Config) (*SlackBot, error)

func (*SlackBot) Run

func (b *SlackBot) Run() error

Jump to

Keyboard shortcuts

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