Talking to ForgeCast
Sounds, alerts, the app's version, links, and messages between plugins.
Functions
sounds.play(name)
Play a sound from the Sound Library by its name (capital letters don't matter). Get sounds under Sound Library -> Find sounds, or upload your own. If there is no sound with that name, ForgeCast says so in a message.
name:string
alerts.show(spec)
Show one of your alerts, as if it had happened on stream.
spec:AlertSpec
app.info()
Which ForgeCast is running: its version, the platform, and the plugin API number.
Returns AppInfo
app.open_url(url)
Open a web address in the browser (https only). Needs "app.open_url".
url:string
bus.emit(name, data)
Send a message to your other plugins.
name:stringdata:any, optional
bus.on(name, handler)
Listen for messages from other plugins: handler gets { from = "plugin-id", data = … }.
name:stringhandler:fun(msg: { from: string, data: any })
Returns integer id
bus.off(id)
Stop a handler made with bus.on.
id:integer
Returns boolean found
Types
Open a type to see its fields; type names above link here.

