bot

package
v0.0.0-...-d9ac2dc Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 11 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 {
	SlackAuthToken string
	SlackAppToken  string
	Ctx            context.Context
	Cancel         context.CancelFunc
	AdminUserIDs   []string
	CmdHandler     *handlers.Handler
	ChannelName    string
	Cache          cache.Cache
	// contains filtered or unexported fields
}

func New

func New(authToken, appToken, channelName string, adminUserEmails []string, cmdHandler *handlers.Handler, cache cache.Cache) *Config

func (*Config) Run

func (b *Config) Run() error

func (*Config) Stop

func (b *Config) Stop()

Jump to

Keyboard shortcuts

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