lua

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LuaRobot

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

func NewLuaRobot

func NewLuaRobot(config LuaRobotConfig) *LuaRobot

func (*LuaRobot) Init

func (l *LuaRobot) Init()

func (*LuaRobot) Logf

func (l *LuaRobot) Logf(format string, a ...interface{})

func (*LuaRobot) LuaAddTimer added in v0.6.1

func (l *LuaRobot) LuaAddTimer(L *lua.LState) int

func (*LuaRobot) LuaDelTimer added in v0.6.1

func (l *LuaRobot) LuaDelTimer(L *lua.LState) int

func (*LuaRobot) LuaEcho added in v0.6.1

func (l *LuaRobot) LuaEcho(L *lua.LState) int

func (*LuaRobot) LuaPrint added in v0.6.1

func (l *LuaRobot) LuaPrint(L *lua.LState) int

func (*LuaRobot) LuaRegEx added in v0.6.1

func (l *LuaRobot) LuaRegEx(L *lua.LState) int

func (*LuaRobot) LuaRun added in v0.6.1

func (l *LuaRobot) LuaRun(L *lua.LState) int

func (*LuaRobot) LuaSend added in v0.6.1

func (l *LuaRobot) LuaSend(L *lua.LState) int

func (*LuaRobot) OnReceive

func (l *LuaRobot) OnReceive(raw, input string)

func (*LuaRobot) OnSend

func (l *LuaRobot) OnSend(cmd string) bool

func (*LuaRobot) Panic

func (l *LuaRobot) Panic(err error)

func (*LuaRobot) Reload

func (l *LuaRobot) Reload() error

func (*LuaRobot) SetMud

func (l *LuaRobot) SetMud(w io.Writer)

func (*LuaRobot) SetScreen

func (l *LuaRobot) SetScreen(w printer.Printer)

type LuaRobotConfig

type LuaRobotConfig struct {
	Enable bool   `flag:"|true|是否加载 Lua 机器人"`
	Path   string `flag:"p|lua|Lua 插件路径 {path}"`
}

type Timer

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

func (*Timer) Emit

func (t *Timer) Emit(l *LuaRobot)

Jump to

Keyboard shortcuts

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