Documentation ¶
Index ¶
- type BotEngine
- func (be *BotEngine) Commands() []*command.Command
- func (be *BotEngine) GetUser(appID entity.PlatformID, platformUserID string) (*entity.User, error)
- func (be *BotEngine) NetworkStatus() (*network.NetStatus, error)
- func (be *BotEngine) ParseAndExecute(appID entity.PlatformID, callerID string, input string) command.CommandResult
- func (be *BotEngine) Start()
- func (be *BotEngine) Stop()
- type WalletError
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 (*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.
type WalletError ¶
type WalletError struct {
Reason string
}
func (WalletError) Error ¶
func (e WalletError) Error() string
Click to show internal directories.
Click to hide internal directories.