mirror of https://github.com/Hilbis/Hilbish
docs: add todo to lua.go
parent
646cb93dec
commit
edcc1b39f0
1
lua.go
1
lua.go
|
@ -42,6 +42,7 @@ func LuaInit() {
|
||||||
|
|
||||||
cmds := commander.New()
|
cmds := commander.New()
|
||||||
// When a command from Lua is added, register it for use
|
// When a command from Lua is added, register it for use
|
||||||
|
// TODO: maybe dont add command code to a lua table? insstead use a map
|
||||||
cmds.Events.On("commandRegister",
|
cmds.Events.On("commandRegister",
|
||||||
func(cmdName string, cmd *lua.LFunction) {
|
func(cmdName string, cmd *lua.LFunction) {
|
||||||
commands[cmdName] = true
|
commands[cmdName] = true
|
||||||
|
|
Loading…
Reference in New Issue