Mod command to promote the song at the end of the queue to the top

I’m a newbie to nightbot, so apologies if I’m using wrong terminology.

I’d like to give our mods the ability to promote the most recently added (i.e. last) song to the very top. Not sure if there’s any way to do this? Presumably I’d need the length of the queue (that number being equal to the the last song on the list), then do something like:

!promotelatest -cd=100 -ul=mod -a=!songs promote

But, how do I get the “length-of-queue” value?


Hey @millifoo!

Look at the API documentation, Get queue will give you a _total.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.