Class: Isis::Plugin::IsUp

Inherits:
Base
  • Object
show all
Defined in:
lib/isis/plugin/isup.rb

Constant Summary collapse

DOMAIN_REGEX =
/^[a-z0-9]+([\-]{1}[a-z0-9]+)*\.[a-z]{2,5}$/ix
SLACK_REGEX =
/^<http:\/\/(?<url>[a-zA-Z\/\.:]+\w)\|/

Instance Method Summary collapse

Instance Method Details

#respond_to_msg?(msg, speaker) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
12
# File 'lib/isis/plugin/isup.rb', line 9

def respond_to_msg?(msg, speaker)
  @commands = msg.downcase.split
  @commands[0] == '!isup'
end