engine

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotEngine

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

func NewBotEngine

func NewBotEngine(cfg *config.Config) (*BotEngine, error)

func (*BotEngine) Commands

func (be *BotEngine) Commands() []*command.Command

func (*BotEngine) GetUser

func (be *BotEngine) GetUser(appID entity.PlatformID, platformUserID string) (*entity.User, error)

func (*BotEngine) NetworkStatus

func (be *BotEngine) NetworkStatus() (*network.NetStatus, error)

func (*BotEngine) ParseAndExecute

func (be *BotEngine) ParseAndExecute(
	appID entity.PlatformID,
	callerID string,
	input string,
) command.CommandResult

ParseAndExecute parses the input string and executes it. It returns an error if parsing fails or execution is unsuccessful.

func (*BotEngine) Start

func (be *BotEngine) Start()

func (*BotEngine) Stop

func (be *BotEngine) Stop()

type WalletError

type WalletError struct {
	Reason string
}

func (WalletError) Error

func (e WalletError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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