bot

package
v0.0.0-...-c46c504 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config, logger logger.Logger, reminderUsecase usecase.ReminderUsecase, clock clock.Clock) (*bot, error)

Types

type Bot

type Bot interface {
	Start(ctx context.Context) error
	Stop(ctx context.Context) error
}

type Config

type Config struct {
	Token         string
	PollerTimeout time.Duration
}

func FromAppConfig

func FromAppConfig(appCfg *config.AppConfig) Config