alaingilbert / Turntable-API

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

Queue lists,Banned songs,Ban ttstats_# #185

Closed SpaceLegends closed 11 years ago

SpaceLegends commented 11 years ago

deleted

alaingilbert commented 11 years ago

I don't understand your question/request (?)

technobly commented 11 years ago
bot.on('registered', function(data) {
  for (var i = 0; i < data.user.length; ++i) {
    var user = data.user[i];
    if (user.name.match(/ttstats/i)) {
      bot.bootUser(user.userid, 'Beat it, bot!');
      console.log("[ BANNED ] : " + user.name + " " + user.userid);
    }
  }
});

However, if you don't want to treat bots badly... you can just opt out http://ttstats.info/optout

technobly commented 11 years ago

Sorry, can't share my code for that... spent too much time perfecting it.

sharedferret commented 11 years ago

SparkleTurntableBot has both of those features, if you feel like reading through that code to pull out what you need. I don't have the time to point to specific sections of it, though, so you're on your own for that part. :)

Sent from my iPhone

On May 2, 2013, at 3:47 PM, DubbyTT notifications@github.com wrote:

Sorry, can't share my code for that... spent too much time perfecting it.

— Reply to this email directly or view it on GitHubhttps://github.com/alaingilbert/Turntable-API/issues/185#issuecomment-17369647 .

MikeWills commented 11 years ago

My not Uglee also has most of those features. Heavily borrowed from Sparkle. On May 2, 2013 5:49 PM, "Kate Wellington" notifications@github.com wrote:

SparkleTurntableBot has both of those features, if you feel like reading through that code to pull out what you need. I don't have the time to point to specific sections of it, though, so you're on your own for that part. :)

Sent from my iPhone

On May 2, 2013, at 3:47 PM, DubbyTT notifications@github.com wrote:

Sorry, can't share my code for that... spent too much time perfecting it.

— Reply to this email directly or view it on GitHub< https://github.com/alaingilbert/Turntable-API/issues/185#issuecomment-17369647>

.

— Reply to this email directly or view it on GitHubhttps://github.com/alaingilbert/Turntable-API/issues/185#issuecomment-17369706 .

samuri51 commented 11 years ago

click on alain gilberts wiki page then go to "some bots created with ttapi." many of those bots have the features you are looking for... you basically asked someone to create a whole bot for you.