Repository navigation
Reference Script Functions Spotify
Kristopher Barrantes edited this page Nov 5, 2026
·
2 revisions
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 a song to your Spotify queue. Great for song requests. Fails with an error when no song is found or Spotify says no (for example, nothing is playing).
| Value | In Python | What to put in |
|---|---|---|
song |
song |
A song name to search for, like "Never Gonna Give You Up", or a Spotify song link (open.spotify.com/track/...). |
Gives back: The song that was added: title, artist, uri (Spotify's id for it) and link.
C#
var answer = await Cb.Call("spotify.addToQueue", new { song = "Never Gonna Give You Up" });Python
answer = cb.spotify_add_to_queue(song="Never Gonna Give You Up")Checks whether Cuebot is signed in to your Spotify account.
Gives back: true when signed in, otherwise false.
C#
var answer = await Cb.Call("spotify.isSignedIn");Python
answer = cb.spotify_is_signed_in()Cuebot by Tech Daddy Digital · MIT license · Privacy
Cuebot Docs (the same pages, nicer to read)
- Home
- Start here
-
Guides
- Chat commands
- 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
