3
0
mirror of https://github.com/reality/dbot.git synced 2025-02-23 08:50:44 +01:00
This commit is contained in:
reality 2015-04-23 15:18:28 +00:00
parent 8e31ac0ed6
commit 19442bfe8f

View File

@ -33,7 +33,7 @@ var food = function(dbot) {
this.commands['~recipe'].regex = [/^recipe (.+)$/, 2];
this.listener = function(event) {
var match = event.message.match(new RegExp(dbot.config.name + ': what should i (have|eat|make)\\??( for dinner)?\\??', 'i'));
var match = event.message.match(new RegExp(dbot.config.name + ': what should i (have|eat|make)\\??( for (dinner|lunch|breakfast))?\\??', 'i'));
if(match) {
request.get('http://food2fork.com/api/search', {
'qs': {