From 48ba900ea1a92218206b03af90488bfeba2572c8 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 22 Jul 2014 11:28:54 +0000 Subject: [PATCH] new post with less info --- modules/reddit/reddit.js | 2 +- modules/reddit/strings.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/reddit/reddit.js b/modules/reddit/reddit.js index 33ad8f7..cb4f056 100644 --- a/modules/reddit/reddit.js +++ b/modules/reddit/reddit.js @@ -58,7 +58,7 @@ 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) { - dbot.say(channel.server, channel.channel, dbot.t('about_post', { + dbot.say(channel.server, channel.channel, dbot.t('about_new_post', { 'title': _.unescape(post.title.trim()), 'poster': post.author, 'subreddit': post.subreddit, diff --git a/modules/reddit/strings.json b/modules/reddit/strings.json index 946630f..eb9179c 100644 --- a/modules/reddit/strings.json +++ b/modules/reddit/strings.json @@ -14,6 +14,9 @@ "it": "[Messaggio di {poster} su {subreddit} — Commenti: {comments}, Punteggio: {score} (\u00039▲{up}\u000f|\u000312{down}▼\u000f)] — {url}" }, + "about_new_post": { + "en": "[{title}] [Post by {poster} in {subreddit}] — {url}" + }, "about_comment": { "en": "[Comment by {poster} in {subreddit} — Score: {score} (\u00039▲{up}\u000f|\u000312{down}▼\u000f)]", "cy": "[Sylw gan {poster} yn {subreddit} - Sgôr: {score} (\u00039▲{up}\u000f|\u000312{down}▼\u000f)]",