forked from GitHub/dbot
hehe
This commit is contained in:
parent
ff8dc8ce6d
commit
fcb32eaac4
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user