diff options
author | terminaldweller <devi@terminaldweller.com> | 2024-06-11 14:13:13 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2024-06-11 14:13:13 +0000 |
commit | 556c839dc1b5881c1594dbdfede0bd610790967d (patch) | |
tree | f27987d2387fa86d3644df778c96491bd2bf7d1c /plugins.go | |
parent | added a new lua function, query_db (diff) | |
download | milla-556c839dc1b5881c1594dbdfede0bd610790967d.tar.gz milla-556c839dc1b5881c1594dbdfede0bd610790967d.zip |
added a shell.nix for pgformatter, and a wip trigger for db size maintenance
Diffstat (limited to 'plugins.go')
-rw-r--r-- | plugins.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -13,6 +13,7 @@ import ( "github.com/kohkimakimoto/gluayaml" "github.com/lrstanley/girc" openai "github.com/sashabaranov/go-openai" + "github.com/yuin/gluare" lua "github.com/yuin/gopher-lua" "gitlab.com/megalithic-llc/gluasocket" ) @@ -332,6 +333,7 @@ func RunScript(scriptPath string, client *girc.Client, appConfig *TomlConfig) { gluaxmlpath.Preload(luaState) luaState.PreloadModule("http", gluahttp.NewHttpModule(&http.Client{}).Loader) luaState.PreloadModule("yaml", gluayaml.Loader) + luaState.PreloadModule("re", gluare.Loader) log.Print("Running script: ", scriptPath) |