This commit is contained in:
reality 2015-04-23 14:56:13 +00:00
parent ff8dc8ce6d
commit fcb32eaac4
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ var _ = require('underscore')._,
var food = function(dbot) { var food = function(dbot) {
this.commands = { this.commands = {
'~food': function(event) { '~recipe': function(event) {
request.get('http://food2fork.com/api/search', { request.get('http://food2fork.com/api/search', {
'qs': { 'qs': {
'key': this.config.api_key, 'key': this.config.api_key,
@ -30,7 +30,7 @@ var food = function(dbot) {
}.bind(this)); }.bind(this));
} }
}; };
this.commands['~food'].regex = [/^food (.+)$/, 2]; this.commands['~recipe'].regex = [/^food (.+)$/, 2];
}; };
exports.fetch = function(dbot) { exports.fetch = function(dbot) {