aboutsummaryrefslogtreecommitdiffstats
path: root/plugins.go
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2024-06-11 14:13:13 +0000
committerterminaldweller <devi@terminaldweller.com>2024-06-11 14:13:13 +0000
commit556c839dc1b5881c1594dbdfede0bd610790967d (patch)
treef27987d2387fa86d3644df778c96491bd2bf7d1c /plugins.go
parentadded a new lua function, query_db (diff)
downloadmilla-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.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins.go b/plugins.go
index b25d1c4..08f81a9 100644
--- a/plugins.go
+++ b/plugins.go
@@ -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)