Class: Isis::Plugin::IsUp
- Inherits:
-
Base
- Object
- Base
- Isis::Plugin::IsUp
- 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
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 |