Skip to content

Spotify script functions

Functions for C# (Cb.Call) and Python (cb.call). See Script functions for how to use them.

spotify.addToQueue

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 What to put in
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.

var answer = await Cb.Call("spotify.addToQueue", new { song = "Never Gonna Give You Up" });
answer = cb.call("spotify.addToQueue", song="Never Gonna Give You Up")

spotify.isSignedIn

Checks whether Cuebot is signed in to your Spotify account.

Gives back: true when signed in, otherwise false.

var answer = await Cb.Call("spotify.isSignedIn");
answer = cb.call("spotify.isSignedIn")