mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
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) {
|
this.api.getNewPosts(feed.subreddit, checkTimes[channel.id][feed.subreddit], function(err, posts) {
|
||||||
if(!err && posts.length > 0) {
|
if(!err && posts.length > 0) {
|
||||||
_.each(posts, function(post) {
|
_.each(posts, function(post) {
|
||||||
if(_.has(this.colours, post.subreddit)) {
|
if(_.has(this.config.colours, post.subreddit)) {
|
||||||
post.subreddit = this.colours[post.subreddit] + post.subreddit + "\u0003";
|
post.subreddit = this.config.colours[post.subreddit] + post.subreddit + "\u0003";
|
||||||
}
|
}
|
||||||
dbot.say(channel.server, channel.channel, dbot.t('about_new_post', {
|
dbot.say(channel.server, channel.channel, dbot.t('about_new_post', {
|
||||||
'title': _.unescape(post.title.trim()),
|
'title': _.unescape(post.title.trim()),
|
||||||
|
Loading…
Reference in New Issue
Block a user