diff --git a/core/otto.go b/core/otto.go index b6a3914..f102c71 100644 --- a/core/otto.go +++ b/core/otto.go @@ -238,6 +238,10 @@ func init123() { v, _ := otto.ToValue(s.GetUsername()) return v }) + vm.Set("Debug", func(str otto.Value) otto.Value { + logs.Debug(str) + return otto.Value{} + }) vm.Set("GetUserID", func() otto.Value { v, _ := otto.ToValue(s.GetUserID()) return v