Skip to content

Reference Script Functions Polypop

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

PolyPop 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

polypop.isConnected

Checks whether PolyPop is connected to Cuebot right now (at least one Cuebot plugin in PolyPop).

Gives back: true while at least one PolyPop plugin is connected, otherwise false.

C#

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

Python

answer = cb.polypop_is_connected()

polypop.triggerAlert

Sets off a WebSocket Alert in PolyPop and hands it some words to show. Fails with an error when PolyPop is not connected.

Value In Python What to put in
alertName alert_name The alert's name as set in PolyPop, like "Follow". Needed.
variables variables Optional. Words for the alert to use, like {"user": "CoolViewer"}. Every value is sent as text.

Gives back: How many PolyPop plugins got the alert.

C#

var answer = await Cb.Call("polypop.triggerAlert", new { alertName = "Follow", variables = new { user = "CoolViewer" } });

Python

answer = cb.polypop_trigger_alert(alert_name="Follow", variables={"user": "CoolViewer"})

Clone this wiki locally