new post with less info

This commit is contained in:
reality 2014-07-22 11:28:54 +00:00
parent 45f1b3c311
commit 48ba900ea1
2 changed files with 4 additions and 1 deletions

View File

@ -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,

View File

@ -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)]",