scripting

package
v0.0.0-...-ad7117f Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

README

How to use the lua scripting

The code block used must be specified with lua syntax

%lua return bool
```lua
return false
```

Any return values must be specified in the command

%lua return string
```lua
return "this is a string"
```

Multiple values may be returned

%lua return int bool
```lua
return 1, true
```

Valid return types are int,bool,float, and string

The lua command optionally takes in variables to use in the script in the form name=value

%lua a=123 b=false c=test d=1.2 return int bool string float
```lua
return a,b,c,d
```

String argument bug

String arguments cannot include a space right now

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lua

func Lua(api types.API, message *types.Message, args []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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