Repository navigation
Reference Script Functions Quotes
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.
Saves a new quote. It gets the next number. Leave the user out for the person who triggered the action. Fails when the text is empty.
| Value | In Python | What to put in |
|---|---|---|
text |
text |
The quote, like "I never miss a jump." |
user |
user |
Optional. Who said it, like "CoolStreamer". Leave it out for the user of the trigger. |
userId |
user_id |
Optional. That person's user id. Leave it out for the id of the trigger's user. |
platform |
platform |
Optional. The platform, like "twitch". Leave it out for the platform of the trigger. |
game |
game |
Optional. The game, like "Celeste". Leave it out for the game Cuebot last saw you stream. |
Gives back: The new quote, with id, text, user, userId, platform, game and createdAt.
C#
var answer = await Cb.Call("quotes.add", new { text = "I never miss a jump.", user = "CoolStreamer" });Python
answer = cb.quotes_add(text="I never miss a jump.", user="CoolStreamer")Counts your saved quotes.
Gives back: The number of quotes.
C#
var answer = await Cb.Call("quotes.count");Python
answer = cb.quotes_count()Deletes a quote.
| Value | In Python | What to put in |
|---|---|---|
id |
id |
The quote number, like 12 ("#12" works too). |
Gives back: true when it existed, otherwise false.
C#
var answer = await Cb.Call("quotes.delete", new { id = 12 });Python
answer = cb.quotes_delete(id=12)Changes a quote. Only what you pass is changed; the rest stays.
| Value | In Python | What to put in |
|---|---|---|
id |
id |
The quote number, like 12 ("#12" works too). |
text |
text |
Optional. The new quote text. |
user |
user |
Optional. The new name of who said it. |
game |
game |
Optional. The new game. |
Gives back: The changed quote with id, text, user, userId, platform, game and createdAt, or null when there is no such quote.
C#
var answer = await Cb.Call("quotes.edit", new { id = 12, game = "Celeste" });Python
answer = cb.quotes_edit(id=12, game="Celeste")Gets one quote by its number.
| Value | In Python | What to put in |
|---|---|---|
id |
id |
The quote number, like 12 ("#12" works too). |
Gives back: An object with id, text, user, userId, platform, game and createdAt. null when there is no such quote.
C#
var answer = await Cb.Call("quotes.get", new { id = 12 });Python
answer = cb.quotes_get(id=12)Picks a random quote. Can pick only among quotes that contain a word, and can fire the Quote shown trigger.
| Value | In Python | What to put in |
|---|---|---|
search |
search |
Optional. Only quotes whose text, user or game contains this, like "jump". A number also matches that quote id. |
show |
show |
Optional. true also runs your Quote shown trigger with the picked quote. Leave it out for false. |
Gives back: The quote with id, text, user, userId, platform, game and createdAt, or null when none match.
C#
var answer = await Cb.Call("quotes.random", new { search = "jump", show = true });Python
answer = cb.quotes_random(search="jump", show=True)Finds quotes whose text, user or game contains a word. Upper or lower case does not matter.
| Value | In Python | What to put in |
|---|---|---|
query |
query |
What to look for, like "jump". Leave it empty for every quote. |
Gives back: A list of quotes, each with id, text, user, userId, platform, game and createdAt.
C#
var answer = await Cb.Call("quotes.search", new { query = "jump" });Python
answer = cb.quotes_search(query="jump")Runs your Quote shown trigger for a quote, so an overlay or action can display it.
| Value | In Python | What to put in |
|---|---|---|
id |
id |
The quote number, like 12 ("#12" works too). |
Gives back: The quote with id, text, user, userId, platform, game and createdAt, or null when there is no such quote.
C#
var answer = await Cb.Call("quotes.show", new { id = 12 });Python
answer = cb.quotes_show(id=12)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
