avatarkava / beavisbot

A node.js powered bot for plug.dj and dubtrack.fm
https://github.com/avatarkava/beavisbot/wiki
MIT License
22 stars 20 forks source link

Automatically respond to bot friend requests #97

Closed avatarkava closed 9 years ago

avatarkava commented 9 years ago

Starting bit here w/ help from @omfgitsasalmon

(function() {
    function deleteFriends(id, timeout) {
        setTimeout(function() {
            $.ajax({
                type: 'DELETE',
                url: 'https://plug.dj/_/friends/' + id
            }).done(function(msg) {
                console.log(msg);
            });
        }, timeout);
    }

    var friends = [6062213, 5508071];
    for (var i in friends) {
        deleteFriends(friends[i], 500);
    }
})();
avatarkava commented 9 years ago

Not a feature of dubtrack