TreatStream script functions¶
Functions for C# (Cb.Call) and Python (cb.call). See Script functions for how to use them.
treatstream.isConnected¶
Checks whether Cuebot is connected to TreatStream right now.
Gives back: true while connected, otherwise false.
var answer = await Cb.Call("treatstream.isConnected");
answer = cb.call("treatstream.isConnected")
treatstream.sendTestEvent¶
Fakes a TreatStream treat inside Cuebot, so you can test your triggers. Nothing is sent to TreatStream and it works without a connection.
| Value | What to put in |
|---|---|
kind |
Optional. Which event. Only "treat" exists, and it is the default. |
Gives back: true when the test treat was sent, false when the kind is unknown.
var answer = await Cb.Call("treatstream.sendTestEvent");
answer = cb.call("treatstream.sendTestEvent")