This commit is contained in:
cdle
2023-06-02 14:14:03 +08:00
parent da590d9f14
commit d148f2045b
2 changed files with 76 additions and 0 deletions
+3
View File
@@ -399,6 +399,9 @@ func SetPluginMethod(vm *goja.Runtime, uuid string, on_start bool) {
return promise
})
vm.Set("request", request)
vm.Set("getReplyMessage", func(plt string, bots_id []string) *goja.Promise {
return GetReplyMessage(vm, plt, bots_id)
})
}
func EncryptPlugin(script string) string {