Closed SpaceLegends closed 11 years ago
I don't understand your question/request (?)
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
Sorry, can't share my code for that... spent too much time perfecting it.
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 .
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 .
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.
deleted