Skip to content

Reference Script Functions Donordrive

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

DonorDrive script functions

Also on the Cuebot Docs site.

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

donordrive.getProfile

Gives you the last details Cuebot read from your DonorDrive page, like your goal and how much you raised.

Gives back: id, name, teamName, eventName, goal, raised, donations (how many), isTeam (true/false) and url. null when nothing was read yet.

C#

var answer = await Cb.Call("donordrive.getProfile");

Python

answer = cb.call("donordrive.getProfile")

donordrive.isConnected

Checks whether Cuebot is watching your DonorDrive (charity) page right now.

Gives back: true while Cuebot is checking your participant or team page, otherwise false.

C#

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

Python

answer = cb.call("donordrive.isConnected")

donordrive.sendTestEvent

Fakes a DonorDrive event inside Cuebot, so you can test your triggers. Nothing is sent to DonorDrive and it works without a connection.

Value What to put in
kind Optional. Which event: "donation", "incentive" (a donation that picked a reward) or "profile" (your totals went up). Default "donation".

Gives back: true when the test event was sent, false when the kind is unknown.

C#

var answer = await Cb.Call("donordrive.sendTestEvent", new { kind = "donation" });

Python

answer = cb.call("donordrive.sendTestEvent", kind="donation")

Clone this wiki locally