From 15de4c4f5de85015801d043594cc0e4ffd25c566 Mon Sep 17 00:00:00 2001 From: reality Date: Thu, 23 Apr 2015 15:37:42 +0000 Subject: [PATCH] more random recipes --- modules/food/food.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/food/food.js b/modules/food/food.js index 0cb5572..2b3fcb9 100644 --- a/modules/food/food.js +++ b/modules/food/food.js @@ -35,9 +35,11 @@ var food = function(dbot) { this.listener = function(event) { var match = event.message.match(new RegExp(dbot.config.name + ': what should i (have|eat|make)\\??( for (dinner|lunch|breakfast))?\\??', 'i')); if(match) { + var page = _.random(0, 200); request.get('http://food2fork.com/api/search', { 'qs': { 'key': this.config.api_key, + 'page': page }, 'json': true }, function(error, response, body) {