TinyMUX

Lua()

Functions

Description

FUNCTION: lua(<object>/<attribute>[, <arg1>[, <argN>…]])

Executes the Lua script stored in the specified attribute on the given object and returns the script’s output. Additional arguments are made available to the Lua script via the mux.args table.

Returns #-1 LUA ERROR on failure.

Examples

> say lua(me/luascript)

> say lua(#123/compute, 42, hello)

@lua, gmcp()