lua

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 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 {
	printer.SimplePrinter
	// contains filtered or unexported fields
}

func NewLuaRobot

func NewLuaRobot(config LuaRobotConfig) *LuaRobot

func (*LuaRobot) AddTimer

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

func (*LuaRobot) DelTimer

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

func (*LuaRobot) Echo

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

func (*LuaRobot) Init

func (l *LuaRobot) Init()

func (*LuaRobot) Logf

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

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) Print

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

func (*LuaRobot) RegEx

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

func (*LuaRobot) Reload

func (l *LuaRobot) Reload() error

func (*LuaRobot) Run

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

func (*LuaRobot) Send

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

func (*LuaRobot) SetMud

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

func (*LuaRobot) SetScreen

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

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