I am trying to time my chat bot’s updates when a song is just now being played. My bot is in C#.
I am using the Spotify API to post data on when my music has changed.
Sample Output: “Now Playing ‘Song Name’ by ‘Artist’”
There is the “standard” 10-20 seconds BUT the problem is that this encoding and transmission delay is different for everyone watched based on the quality they selected (or slow internet they are on, or even mobile internet)
So I wouldn’t bother with a delay for what you are doing.
On a side note what API are you using, I’m unfamiliar with Spotify having a API last time I checked. (I push to last.fm and consume last.fm API instead)