alaingilbert / Turntable-API

Allows you to create bots for turntable.fm
http://alaingilbert.github.com/Turntable-API/
MIT License
318 stars 97 forks source link

a little help request #255

Closed ghost closed 10 years ago

ghost commented 10 years ago

How can I make my bot get mad when the DJ plays a song that is overplayed in the room?

gizmotronic commented 10 years ago

Q: Can bots get mad? A: There is nothing in Turntable-API that will impart emotions to your bot (yet). Sorry.

Q: How might I figure out if something is overplayed? A: I could track the songs that have been played in some sort of storage mechanism (e.g. a database), and query it each time a song is played to count how many times a song has been played in the last while. Unfortunately, there are no storage features in Turntable-API.

MikeWills commented 10 years ago

To add a bit more complication. You have the original, the cover, and the remixes. You could also include the unplugged and the sampled. How would you know that one song is overplayed... and what time span would this be over? 1 day? 10 days? 100 days?

I have pondered this on my bot (which does store every song it has heard since it started running), but decided that there is enough whining from the listeners and the bot doesn't need to add to the whining.