discordbot

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotService

type BotService struct {
	bot.Client
	// contains filtered or unexported fields
}

func NewBotService

func NewBotService[E bot.Event](
	f func(e E),
	cfg configs.SectionDiscord,
	logger *logger.Logger,
) *BotService

func (*BotService) Check

func (b *BotService) Check(ctx context.Context) error

func (*BotService) Run

func (b *BotService) Run() error

func (*BotService) SetLogger

func (b *BotService) SetLogger(logger *logger.Logger)

func (*BotService) Stop

func (b *BotService) Stop(ctx context.Context)

Jump to

Keyboard shortcuts

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