lib/cinch/plugins/twitter.rb
# Send the last status for the TWITTER_USER to the user who requested it
Send the last status for the TWITTER_USER to the user who requested it
Send the last status for the TWITTER_USER to the user who requested it
def command_last_status(m)
        @user.each do |z|
          begin
            status = Client.user_timeline(z).first
            @twitter_laststatus_user = z
            m.user.send response_from_laststatus(status)
          rescue ::Twitter::Error::ServiceUnavailable
            m.user.send "Oops, looks like Twitter's whale failed. Try again in a minute."
          end
        end
      end
def command_last_status ( m ) @user . each do | z | begin status = Client . user_timeline ( z ) . first @twitter_laststatus_user = z m . user . send response_from_laststatus ( status ) rescue :: Twitter :: Error :: ServiceUnavailable m . user . send "Oops, looks like Twitter's whale failed. Try again in a minute." end end end
Send the last status for the TWITTER_USER to the user who requested it
Send the last status for the TWITTER_USER to the user who requested it
m