3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00
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) {
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) {