samstarling/gradbot

View on GitHub
plugins/twss.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'twss'

class ThatsWhatSheSaid
  include Cinch::Plugin

  listen_to :message, :method => :twss

  def twss(m, *args)
    TWSS.threshold = 8.0
    if TWSS(m.message)
      sleep 1
      m.reply "#{m.user.nick}: That's what she said!"
    end
  end
end