forked from GitHub/dbot
23 lines
573 B
JavaScript
23 lines
573 B
JavaScript
var _ = require('underscore')._;
|
|
|
|
var pages = function(dbot) {
|
|
return {
|
|
'/imgur/random': function(req, res) {
|
|
res.render('imgurr', { });
|
|
},
|
|
|
|
'/imgur/stats': function(req, res) {
|
|
res.render('imgurstats', {
|
|
'name': dbot.config.name,
|
|
'totalHttpRequests': this.db.totalHttpRequests,
|
|
'totalApiRequests': this.db.totalApiRequests,
|
|
'totalImages': this.db.totalImages
|
|
});
|
|
}
|
|
};
|
|
};
|
|
|
|
exports.fetch = function(dbot) {
|
|
return pages(dbot);
|
|
};
|