3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 04:02:39 +01:00

Forgot to add req and res entry

This commit is contained in:
Luke Slater 2012-02-11 15:55:14 +00:00
parent 2db1174689
commit 5ef21027ea

View File

@ -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() } });
});