Repository navigation
Reference Script Functions Goals
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.
Adds points to a goal, or takes them away with a negative number.
| Value | In Python | What to put in |
|---|---|---|
goal |
goal |
Optional. The goal's name. Leave it out for the first goal. |
points |
points |
How many points. |
useMultiplier |
use_multiplier |
Optional. true to use the goal's multiplier. |
Gives back: The points really added.
C#
var answer = await Cb.Call("goals.addPoints", new { goal = "Emote ladder", points = 5 });Python
answer = cb.goals_add_points(goal="Emote ladder", points=5)Gives you a goal: its points, steps and settings.
| Value | In Python | What to put in |
|---|---|---|
goal |
goal |
Optional. The goal's name. Leave it out for the first goal. |
Gives back: An object with id, name, points, steps (each with name and points, lowest first), reachedThrough (the highest step already announced), multiplier, resetOnNewStream and values, or null when there is no such goal.
C#
var answer = await Cb.Call("goals.get", new { goal = "Emote ladder" });Python
answer = cb.goals_get(goal="Emote ladder")Gives you every goal.
Gives back: A list of goals, each like goals.get gives.
C#
var answer = await Cb.Call("goals.list");Python
answer = cb.goals_list()Puts a goal back to 0 points, so every step can be reached again.
| Value | In Python | What to put in |
|---|---|---|
goal |
goal |
Optional. The goal's name. Leave it out for the first goal. |
Gives back: true.
C#
var answer = await Cb.Call("goals.reset");Python
answer = cb.goals_reset()Changes how much event points count. Points already added do not change.
| Value | In Python | What to put in |
|---|---|---|
goal |
goal |
Optional. The goal's name. Leave it out for the first goal. |
multiplier |
multiplier |
2 = double, 1 = normal, 0.5 = half. |
Gives back: true.
C#
var answer = await Cb.Call("goals.setMultiplier", new { multiplier = 0.5 });Python
answer = cb.goals_set_multiplier(multiplier=0.5)Sets a goal's points.
| Value | In Python | What to put in |
|---|---|---|
goal |
goal |
Optional. The goal's name. Leave it out for the first goal. |
points |
points |
The new number of points. |
Gives back: true.
C#
var answer = await Cb.Call("goals.setPoints", new { points = 0 });Python
answer = cb.goals_set_points(points=0)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
