public
Description: An extensible bot for the Campfire web-based chat system #crc
Homepage:
Clone URL: git://github.com/timriley/campfire-bot.git
only echo tweets to the room if they are not @replies
timriley (author)
Mon Oct 27 19:58:32 -0700 2008
commit  56c245fd80d827b306c0145540e4722cb1c8762c
tree    811e34c289bb61e7e81a39dde53b472e0750f6bf
parent  d9b0104336ac42954a63869ae3f99a3398c92088
...
18
19
20
21
 
22
23
24
...
18
19
20
 
21
22
23
24
0
@@ -18,7 +18,7 @@ class TwitterEcho < CampfireBot::Plugin
0
   
0
   def echo_tweets(msg = nil)
0
     recent_tweets.reverse.each do |tweet|
0
-      speak("#{coder.decode(tweet.from)}: #{coder.decode(tweet.text)} #{tweet.link}")
0
+      speak("#{coder.decode(tweet.from)}: #{coder.decode(tweet.text)} #{tweet.link}") unless tweet.text =~ /^@/
0
     end
0
     @latest = latest_tweet.date   # next time, only print tweets newer than this
0
     @doc    = nil                 # reset the feed so that next time we can actually any new tweets

Comments