From 02e8b672cdf3bf8c67f78a2a7fc028c4c6304a30 Mon Sep 17 00:00:00 2001 From: Adam James Date: Tue, 4 Mar 2008 17:10:19 +0000 Subject: [PATCH] rss plugin: add 'photoblog' and 'news' formats --- data/rbot/plugins/rss.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb index 8e8cb29c..f6e0b98a 100644 --- a/data/rbot/plugins/rss.rb +++ b/data/rbot/plugins/rss.rb @@ -920,6 +920,14 @@ class RSSFeedsPlugin < Plugin abt = category ? "about #{category} " : "" line1 = "#{handle}#{date}#{author}blogged #{abt}at #{link}" line2 = "#{handle}#{title} - #{desc}" + when 'photoblog' + author += " " if author + abt = category ? "under #{category} " : "" + line1 = "#{handle}#{date}#{author}added an image #{abt}at #{link}" + line2 = "#{handle}#{title} - #{desc}" + when 'news' + line1 = "#{handle}#{date}#{title} @ #{link}" + line2 = line2 = "#{handle}#{date}#{desc}" when 'git' author += " " if author line1 = "#{handle}#{date}#{author}commited #{title} @ #{link}" -- 2.39.5