commander

package
v0.0.0-...-10f1102 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commander

type Commander struct {
	Intents   map[string]interface{}
	Responses map[string]interface{}
	Store     map[string]interface{}
	Commands  map[string]cmdFunc
	// contains filtered or unexported fields
}

Commander ...

func New

func New(bot *djangobot.Bot) *Commander

New ...

func (*Commander) Counter

func (c *Commander) Counter(command string, tokens []string, data map[string]string) interface{}

Counter ...

func (*Commander) Delay

func (c *Commander) Delay(command string, tokens []string, data map[string]string) (result interface{})

Delay ...

func (*Commander) Download

func (c *Commander) Download(command string, tokens []string, data map[string]string) interface{}

Download ...

func (*Commander) Execute

func (c *Commander) Execute(command string) (result interface{})

Execute ...

func (*Commander) Filter

func (c *Commander) Filter(command string, tokens []string, data map[string]string) interface{}

Filter ...

func (*Commander) GetDataCmd

func (c *Commander) GetDataCmd(command string, tokens []string, data map[string]string) interface{}

GetDataCmd ...

func (*Commander) Listen

func (c *Commander) Listen()

Listen ...

func (*Commander) LoadIntents

func (c *Commander) LoadIntents(intents []byte) error

LoadIntents ...

func (*Commander) LoadIntentsFromFile

func (c *Commander) LoadIntentsFromFile(filename string) *Commander

LoadIntentsFromFile ...

func (*Commander) Loop

func (c *Commander) Loop(command string, tokens []string, data map[string]string) (result interface{})

Loop ...

func (*Commander) Pool

func (c *Commander) Pool(command string, tokens []string, data map[string]string) (result interface{})

Pool ...

func (*Commander) PrintCommands

func (c *Commander) PrintCommands()

PrintCommands ...

func (*Commander) QueryCmd

func (c *Commander) QueryCmd(command string, tokens []string, data map[string]string) interface{}

Filter ...

func (*Commander) ReadFromDB

func (c *Commander) ReadFromDB(command string, tokens []string, data map[string]string) (result interface{})

ReadFromDB ...

func (*Commander) Repeat

func (c *Commander) Repeat(command string, tokens []string, data map[string]string) (result interface{})

Repeat ...

func (*Commander) RequestExecutorCmd

func (c *Commander) RequestExecutorCmd(command string, tokens []string, data map[string]string) interface{}

RequestExecutorCmd ...

func (*Commander) RunScript

func (c *Commander) RunScript(command string, token []string, data map[string]string) interface{}

RunScript ...

func (*Commander) RunScriptBase64

func (c *Commander) RunScriptBase64(command string, token []string, data map[string]string) interface{}

RunScriptBase64 ...

func (*Commander) SaveToDB

func (c *Commander) SaveToDB(command string, tokens []string, data map[string]string) (result interface{})

SaveToDB ...

Jump to

Keyboard shortcuts

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