mirror of
https://github.com/reality/dbot.git
synced 2024-12-12 13:59:26 +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) {
|
_.each(rmCache, function(quote, index) {
|
||||||
this.api.addQuote(quote.key, quote.quote, event.user, function(newCount) { });
|
this.api.addQuote(quote.key, quote.quote, event.user, function(newCount) { });
|
||||||
});
|
}.bind(this));
|
||||||
|
|
||||||
rmCache.length = 0;
|
rmCache.length = 0;
|
||||||
event.reply(dbot.t('quote_cache_reinstated',
|
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