Script functions¶
Script functions are Cuebot's own tools for code. C# and Python can both use them. Each one has a name, like speech.speak, and takes named values, like text.
// C#: await the call; the answer is JSON
var answer = await Cb.Call("speech.speak", new { text = "Hello!" });
# Python: no await needed
answer = cb.call("speech.speak", text="Hello!")
In C#, Cb.Call works in plain C# code. Inside a Streamer.bot-style CPHInline class, use the CPH methods instead. See Writing code (C# and Python) for whole examples.
| Area | Functions |
|---|---|
| Actions | 1 |
| Arguments | 3 |
| Game controllers | 7 |
| Credits | 4 |
| Crowd Control | 3 |
| Desktop | 3 |
| DonorDrive | 3 |
| Elgato | 15 |
| Emotes | 3 |
| Global variables | 6 |
| Goals | 6 |
| GoXLR | 20 |
| Groups | 9 |
| Heart rate | 1 |
| Hotkeys | 2 |
| HypeRate | 1 |
| Keyboard and mouse | 2 |
| Kick | 10 |
| Log | 1 |
| Lumia Stream | 13 |
| Meld Studio | 19 |
| MIDI | 12 |
| mtion studio | 5 |
| Now playing | 2 |
| OBS | 5 |
| OBSBOT | 8 |
| Pally.gg | 2 |
| Points | 13 |
| PolyPop | 2 |
| Pronouns | 1 |
| Pulsoid | 1 |
| Quotes | 8 |
| Remote instances | 3 |
| Rumble | 1 |
| Streamlabs Desktop | 2 |
| Speech | 10 |
| Spending | 6 |
| Spotify | 2 |
| Stream Deck | 9 |
| StreamElements | 7 |
| Streamlabs | 2 |
| Streamloots | 2 |
| Subathon | 9 |
| Text | 1 |
| TipeeeStream | 2 |
| T.I.T.S. | 9 |
| Import and export | 1 |
| TreatStream | 2 |
| Twitch | 118 |
| User variables | 7 |
| Voice control | 10 |
| Voicemod | 14 |
| VTube Studio | 10 |
| Wave Link | 25 |
| Webhooks | 2 |
| WebSocket | 13 |
| YouTube | 25 |