module Hipbot class Reaction < Struct.new(:plugin, :options, :block) def any_room? options[:room] == true end def anything? regexps.blank? end def anywhere? options[:room].nil? end def desc options[:desc] end def from_all? options[:from].blank? end def global? !!options[:global] end def inspect "#" end def plugin_name plugin.name.demodulize end def match_with message Match.new(self, message) end def private_message_only? options[:room] == false end def readable_command regexps.to_s.gsub(/(?