2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-03 04:03:25 +00:00

docs: add todo to lua.go

This commit is contained in:
sammyette 2021-06-09 20:43:01 -04:00
parent 646cb93dec
commit edcc1b39f0
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5

1
lua.go
View File

@ -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