executor

package
v0.0.0-...-135233e Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandExecutor

type CommandExecutor struct {
	Input chan *discordgo.Message
	// contains filtered or unexported fields
}

func NewCommandExecutor

func NewCommandExecutor(ctx discio.Context, timeout time.Duration) CommandExecutor

func (*CommandExecutor) Process

func (ex *CommandExecutor) Process(finishedCallback func(mm *CommandExecutor))

func (*CommandExecutor) ShouldHandleMessage

func (ex *CommandExecutor) ShouldHandleMessage(m *discordgo.Message) bool

type CommandRunner

type CommandRunner struct {
	Current *cobra.Command
}

type ExecutorPlugin

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

func (*ExecutorPlugin) Init

func (p *ExecutorPlugin) Init()

func (*ExecutorPlugin) MessageCreate

func (p *ExecutorPlugin) MessageCreate(s *discordgo.Session, m *discordgo.MessageCreate)

Jump to

Keyboard shortcuts

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