From 5ef21027ea4df49ca8ca9687188cdd41606c9242 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sat, 11 Feb 2012 15:55:14 +0000 Subject: [PATCH] Forgot to add req and res entry --- modules/web.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/web.js b/modules/web.js index 94f8fba..7628272 100644 --- a/modules/web.js +++ b/modules/web.js @@ -31,7 +31,7 @@ var webInterface = function(dbot) { }); // Load random quote category page - app.get('/rq', function() { + app.get('/rq', function(req, res) { var rCategory = Object.keys(dbot.db.quoteArrs).random(); res.render('quotes', { 'quotes': dbot.db.quoteArrs[rCategory], locals: { 'url_regex': RegExp.prototype.url_regex() } }); });