Documentation
¶
Index ¶
- func NewExecutorTemplate(name string, path string, executor *DefaultExecutor, ...) (*toolsRender.TextTemplate, error)
- type Default
- type DefaultCommand
- func (dc *DefaultCommand) Aliases() []string
- func (dc *DefaultCommand) Description() string
- func (dc *DefaultCommand) Execute(bot common.Bot, user common.User, params common.ExecuteParams) (common.Executor, string, []*common.Attachment, error)
- func (dc *DefaultCommand) Fields() []common.Field
- func (dc *DefaultCommand) Name() string
- func (dc *DefaultCommand) Params() []string
- func (dc *DefaultCommand) Priority() int
- func (dc *DefaultCommand) Wrapper() bool
- type DefaultConfig
- type DefaultExecutor
- func (de *DefaultExecutor) After(message common.Message, channel common.Channel) error
- func (de *DefaultExecutor) Duration() bool
- func (de *DefaultExecutor) Error() bool
- func (de *DefaultExecutor) Original() bool
- func (de *DefaultExecutor) Response() common.Response
- func (de *DefaultExecutor) Visible() bool
- type DefaultOptions
- type DefaultPost
- type DefaultReposne
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutorTemplate ¶ added in v0.2.0
func NewExecutorTemplate(name string, path string, executor *DefaultExecutor, observability *common.Observability) (*toolsRender.TextTemplate, error)
Types ¶
type Default ¶
type Default struct {
// contains filtered or unexported fields
}
func NewDefault ¶
func NewDefault(name string, options DefaultOptions, observability *common.Observability, processors *common.Processors) *Default
func (*Default) AddCommand ¶
type DefaultCommand ¶
type DefaultCommand struct {
// contains filtered or unexported fields
}
func (*DefaultCommand) Aliases ¶ added in v0.0.3
func (dc *DefaultCommand) Aliases() []string
func (*DefaultCommand) Description ¶
func (dc *DefaultCommand) Description() string
func (*DefaultCommand) Execute ¶
func (dc *DefaultCommand) Execute(bot common.Bot, user common.User, params common.ExecuteParams) (common.Executor, string, []*common.Attachment, error)
func (*DefaultCommand) Fields ¶ added in v0.1.0
func (dc *DefaultCommand) Fields() []common.Field
func (*DefaultCommand) Name ¶
func (dc *DefaultCommand) Name() string
func (*DefaultCommand) Params ¶
func (dc *DefaultCommand) Params() []string
func (*DefaultCommand) Priority ¶ added in v0.3.4
func (dc *DefaultCommand) Priority() int
func (*DefaultCommand) Wrapper ¶ added in v0.3.4
func (dc *DefaultCommand) Wrapper() bool
type DefaultConfig ¶ added in v0.0.3
type DefaultExecutor ¶ added in v0.2.0
type DefaultExecutor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶ added in v0.2.0
func NewExecutor(name, path string, command *DefaultCommand, bot common.Bot, user common.User, params common.ExecuteParams) (*DefaultExecutor, error)
func (*DefaultExecutor) Duration ¶ added in v0.2.5
func (de *DefaultExecutor) Duration() bool
func (*DefaultExecutor) Error ¶ added in v0.2.5
func (de *DefaultExecutor) Error() bool
func (*DefaultExecutor) Original ¶ added in v0.2.5
func (de *DefaultExecutor) Original() bool
func (*DefaultExecutor) Response ¶ added in v0.2.5
func (de *DefaultExecutor) Response() common.Response
func (*DefaultExecutor) Visible ¶ added in v0.2.5
func (de *DefaultExecutor) Visible() bool
type DefaultOptions ¶
type DefaultPost ¶ added in v0.2.0
type DefaultReposne ¶ added in v0.2.4
Click to show internal directories.
Click to hide internal directories.