mirror of
https://github.com/reality/dbot.git
synced 2024-12-03 17:39:28 +01:00
fix ~rmdeny and add web route /quoteremovals [#455]
This commit is contained in:
parent
0bc0a1bdb7
commit
6d9f3b644c
@ -87,7 +87,7 @@ var commands = function(dbot) {
|
||||
|
||||
_.each(rmCache, function(quote, index) {
|
||||
this.api.addQuote(quote.key, quote.quote, event.user, function(newCount) { });
|
||||
});
|
||||
}.bind(this));
|
||||
|
||||
rmCache.length = 0;
|
||||
event.reply(dbot.t('quote_cache_reinstated',
|
||||
|
@ -30,6 +30,13 @@ var pages = function(dbot) {
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
'/quoteremovals': function(req, res) {
|
||||
res.render('quotes', {
|
||||
'name': dbot.config.name,
|
||||
'quotes': _.pluck(this.rmCache, 'quote')
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user