Sha256: 339317c270b96d8ad19a940552ba2a411a846828805a9ad640c3ed76f7addad2
Contents?: true
Size: 482 Bytes
Versions: 2
Compression:
Stored size: 482 Bytes
Contents
require 'twss' # A simple plugin that feeds everything said in the room through the # twss gem. Requires the 'twss' gem, obviously. class Robut::Plugin::TWSS < Robut::Plugin::Base # Responds "That's what she said!" if the TWSS gem returns true for # +message+. Strips out any reference to our nick in +message+ # before it stuffs +message+ into the gem. def handle(time, sender_nick, message) reply("That's what she said!") if TWSS(words(message).join(" ")) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
robut-0.2.1 | lib/robut/plugin/twss.rb |
robut-0.2.0 | lib/robut/plugin/twss.rb |