forked from GitHub/dbot
that should learn it?
This commit is contained in:
parent
d9093e6da8
commit
cfbb71faa6
@ -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()),
|
||||
|
Loading…
Reference in New Issue
Block a user