poolBot

package
v0.0.0-...-cd6a17b Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBot

func CreateBot(
	options []bot.Option,
	token string,
) (*bot.Bot, error)

func CreateBotOptions

func CreateBotOptions(
	appMode flags.AppMode,
	blockchainsService *blockchains.Service,
	userService *services.UserService,
	userActionService *services.UserActionService,
	userWalletService *services.UserWalletService,
	languages *languages.Languages,
	defaultHandler *handlers.DefaultHandler,
	config *botConfig.Config,
) []bot.Option

func RegisterHandlers

func RegisterHandlers(
	b *bot.Bot,
	hm *HandlerMatcher,
	defaultHandler *handlers.DefaultHandler,
	userActionService *services.UserActionService,
	userWalletService *services.UserWalletService,
	feedbackService *services.FeedbackService,
	blockchainsService *blockchains.Service,
	config *botConfig.Config,
)

func SetBotDescription

func SetBotDescription(ctx context.Context, b *bot.Bot, localizers []languages.LocalizersItem) error

Types

type HandlerMatcher

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

func NewHandlerMatcher

func NewHandlerMatcher(
	ctx context.Context,
	userActionService *services.UserActionService,
) *HandlerMatcher

func (*HandlerMatcher) MatchUserAction

func (m *HandlerMatcher) MatchUserAction(action services.UserAction) bot.MatchFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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