3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 06:19:24 +01:00

that should learn it?

This commit is contained in:
reality 2016-04-13 22:25:51 +00:00
parent d9093e6da8
commit cfbb71faa6

View File

@ -53,8 +53,8 @@ var reddit = function(dbot) {
this.api.getNewPosts(feed.subreddit, checkTimes[channel.id][feed.subreddit], function(err, posts) {
if(!err && posts.length > 0) {
_.each(posts, function(post) {
if(_.has(this.colours, post.subreddit)) {
post.subreddit = this.colours[post.subreddit] + post.subreddit + "\u0003";
if(_.has(this.config.colours, post.subreddit)) {
post.subreddit = this.config.colours[post.subreddit] + post.subreddit + "\u0003";
}
dbot.say(channel.server, channel.channel, dbot.t('about_new_post', {
'title': _.unescape(post.title.trim()),