Repository navigation
Reference Script Functions Nowplaying
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.
Presses a media button for your music player, like play, pause or next song. Fails with an error when no music player is open.
| Value | In Python | What to put in |
|---|---|---|
command |
command |
Optional. Which button: "PlayPause", "Play", "Pause", "Next" or "Previous". Default "PlayPause". |
player |
player |
Optional. Part of the player's name, like "vlc". Leave it out for the player that is playing now. |
Gives back: The name of the player that got the button press.
C#
var answer = await Cb.Call("nowplaying.control", new { command = "Next" });Python
answer = cb.nowplaying_control(command="Next")Tells you which song is playing on your computer right now, from any music player (or Spotify when you are signed in).
Gives back: found (false when no player is open), title, artist, album, player (its name), artUrl (cover picture link), duration in seconds, link and playing (true/false).
C#
var answer = await Cb.Call("nowplaying.get");Python
answer = cb.nowplaying_get()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
