Repository navigation
Reference Script Functions Args
Kristopher Barrantes edited this page Nov 1, 2026
·
3 revisions
Also on the Cuebot Docs site.
Functions for C# (Cb.Call) and Python (cb.call). See Script functions for how to use them.
Gives you every variable of the running action at once, like user, message and rewardTitle.
Gives back: An object with every variable name and its value.
C#
var answer = await Cb.Call("args.all");Python
answer = cb.call("args.all")Reads one variable of the running action, like the user who triggered it.
| Value | What to put in |
|---|---|
name |
The variable name without % signs, like "user". |
Gives back: The value, or null when the action has no variable with that name.
C#
var answer = await Cb.Call("args.get", new { name = "user" });Python
answer = cb.call("args.get", name="user")Sets a variable of the running action. Later sub-actions can use it as %name%.
| Value | What to put in |
|---|---|
name |
The variable name without % signs, like "winner". |
value |
The value to store: text, a number, true/false or a list. Leave it out to set it to empty (null). |
Gives back: Nothing.
C#
var answer = await Cb.Call("args.set", new { name = "winner", value = "CoolViewer42" });Python
answer = cb.call("args.set", name="winner", value="CoolViewer42")Cuebot by Tech Daddy Digital · MIT license · Privacy
Cuebot Docs (the same pages, nicer to read)
- Home
- Start here
-
Guides
- Chat commands
- The mod portal
- Overlays and alerts
- Writing your own overlay widgets
- Text-to-speech
- Music and now playing
- Points, store and giveaways
- Subathons and goals
- Stream apps and devices
- VTuber apps
- Stream Deck
- The phone app
- Donations and integrations
- Discord bot
- The setup assistant and AI tools
- The assistant on your own computer
- Moving from Streamer.bot
- Cuebot's servers
- Writing code (C# and Python)
- Python in detail
- Using your own code editor
- Controlling Cuebot from other programs
- Backups and your data
- Linux
- Command-line options
- Troubleshooting
- What's experimental
- Reference