Files
komari/utils/messageSender/javascript/meta.go
T
2026-10-08 09:31:51 +08:00

6 lines
493 B
Go

package javascript
type Addition struct {
Script string `json:"script" name:"Script" required:"true" type:"richtext" help:"Implement sendMessage(message, title) and optionally sendEvent(event). Return true or a Promise resolving to true. Available APIs include fetch, XMLHttpRequest, console, timers, Buffer and CommonJS require with Node compatibility modules. Files and local modules are confined to data/notification/javascript; command execution and listening on ports are disabled."`
}