command

package
v0.0.0-...-415d151 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(db *database.MongoDB, message model.Message) ([]string, error)

Types

type Command

type Command struct {
	Client  *database.MongoDB
	Name    string
	Action  string
	Content string
	Message model.Message
}

func (*Command) Execute

func (cmd *Command) Execute() ([]string, error)

func (*Command) GetAutoReplyHelpActive

func (cmd *Command) GetAutoReplyHelpActive() string

func (*Command) GetAutoReplyHelpAdd

func (cmd *Command) GetAutoReplyHelpAdd() string

func (*Command) GetAutoReplyHelpInactive

func (cmd *Command) GetAutoReplyHelpInactive() string

func (*Command) GetAutoReplyHelpList

func (cmd *Command) GetAutoReplyHelpList() string

func (*Command) GetAutoReplyHelpRemove

func (cmd *Command) GetAutoReplyHelpRemove() string

func (*Command) GetLeaveHelpAdd

func (cmd *Command) GetLeaveHelpAdd() string

func (*Command) GetLeaveHelpBroadcast2Here

func (cmd *Command) GetLeaveHelpBroadcast2Here() string

func (*Command) GetLeaveHelpList

func (cmd *Command) GetLeaveHelpList() string

func (*Command) GetLeaveHelpRemove

func (cmd *Command) GetLeaveHelpRemove() string

func (*Command) GetReminderHelpActive

func (cmd *Command) GetReminderHelpActive() string

func (*Command) GetReminderHelpAdd

func (cmd *Command) GetReminderHelpAdd() string

func (*Command) GetReminderHelpInactive

func (cmd *Command) GetReminderHelpInactive() string

func (*Command) GetReminderHelpList

func (cmd *Command) GetReminderHelpList() string

func (*Command) RunRouteAutoReply

func (cmd *Command) RunRouteAutoReply() ([]string, error)

func (*Command) RunRouteLeave

func (cmd *Command) RunRouteLeave() ([]string, error)

func (*Command) RunRouteReminder

func (cmd *Command) RunRouteReminder() ([]string, error)

type CommandWorker

type CommandWorker interface {
	Execute() ([]string, error)
}

Jump to

Keyboard shortcuts

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