diff options
author | Adam James <atj@pulsewidth.org.uk> | 2008-03-04 17:10:19 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-03-04 18:11:58 +0100 |
commit | 02e8b672cdf3bf8c67f78a2a7fc028c4c6304a30 (patch) | |
tree | 1f86bcbb6676bffdb9e3688eec5af9f91f149c80 /data/rbot/plugins | |
parent | 3cdc485069b006174d383e735b54c4a9b7a24b3e (diff) |
rss plugin: add 'photoblog' and 'news' formats
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r-- | data/rbot/plugins/rss.rb | 8 |
1 files changed, 8 insertions, 0 deletions
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}"
|