Skip to content

Reference Script Functions Treatstream

Kristopher Barrantes edited this page Nov 5, 2026 · 2 revisions

TreatStream script functions

Also on the Cuebot Docs site.

Functions for C# (Cb.Call) and Python (a cb method each, or cb.call). See Script functions for how to use them.

A Run Python code step in the action editor

treatstream.isConnected

Checks whether Cuebot is connected to TreatStream right now.

Gives back: true while connected, otherwise false.

C#

var answer = await Cb.Call("treatstream.isConnected");

Python

answer = cb.treatstream_is_connected()

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 In Python What to put in
kind 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.

C#

var answer = await Cb.Call("treatstream.sendTestEvent");

Python

answer = cb.treatstream_send_test_event()

Clone this wiki locally