mirror of
https://github.com/reality/dbot.git
synced 2025-02-23 17:00:41 +01:00
typical
This commit is contained in:
parent
8e31ac0ed6
commit
19442bfe8f
@ -33,7 +33,7 @@ var food = function(dbot) {
|
|||||||
this.commands['~recipe'].regex = [/^recipe (.+)$/, 2];
|
this.commands['~recipe'].regex = [/^recipe (.+)$/, 2];
|
||||||
|
|
||||||
this.listener = function(event) {
|
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) {
|
if(match) {
|
||||||
request.get('http://food2fork.com/api/search', {
|
request.get('http://food2fork.com/api/search', {
|
||||||
'qs': {
|
'qs': {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user