mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 19:52:36 +01:00
Forgot to add req and res entry
This commit is contained in:
parent
2db1174689
commit
5ef21027ea
@ -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() } });
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user