Skip to content

Commit

Permalink
Merge pull request ttezel#268 from amandeepmittal/patch-1
Browse files Browse the repository at this point in the history
Update bot.js
  • Loading branch information
ttezel committed May 27, 2016
2 parents 1b0d52a + 363fb96 commit 7914281
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Bot.prototype.tweet = function (status, callback) {
this.twit.post('statuses/update', { status: status }, callback);
};

// choose a random tweet and follow that user
Bot.prototype.searchFollow = function (params, callback) {
var self = this;

Expand Down Expand Up @@ -124,4 +125,4 @@ Bot.prototype.prune = function (callback) {
function randIndex (arr) {
var index = Math.floor(arr.length*Math.random());
return arr[index];
};
};

0 comments on commit 7914281

Please sign in to comment.