From fcb32eaac40565e97a1587b6929a53949bf5146d Mon Sep 17 00:00:00 2001 From: reality Date: Thu, 23 Apr 2015 14:56:13 +0000 Subject: [PATCH] hehe --- modules/food/food.js | 4 ++-- modules/food/{strings.js => strings.json} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename modules/food/{strings.js => strings.json} (100%) diff --git a/modules/food/food.js b/modules/food/food.js index 535f923..f1e3f4a 100644 --- a/modules/food/food.js +++ b/modules/food/food.js @@ -8,7 +8,7 @@ var _ = require('underscore')._, var food = function(dbot) { this.commands = { - '~food': function(event) { + '~recipe': function(event) { request.get('http://food2fork.com/api/search', { 'qs': { 'key': this.config.api_key, @@ -30,7 +30,7 @@ var food = function(dbot) { }.bind(this)); } }; - this.commands['~food'].regex = [/^food (.+)$/, 2]; + this.commands['~recipe'].regex = [/^food (.+)$/, 2]; }; exports.fetch = function(dbot) { diff --git a/modules/food/strings.js b/modules/food/strings.json similarity index 100% rename from modules/food/strings.js rename to modules/food/strings.json