Class: Twitch::Bot::NoticeCommandParser
- Inherits:
-
CommandParser
- Object
- CommandParser
- Twitch::Bot::NoticeCommandParser
- Defined in:
- lib/twitch/bot/message_parser.rb
Overview
Parses a NOTICE IRC command.
Instance Attribute Summary
Attributes inherited from CommandParser
Instance Method Summary collapse
Methods inherited from CommandParser
Constructor Details
This class inherits a constructor from Twitch::Bot::CommandParser
Instance Method Details
#call ⇒ Object
157 158 159 160 161 162 163 |
# File 'lib/twitch/bot/message_parser.rb', line 157 def call if .params.last.match?(/Login authentication failed/) Message::LoginFailed.new(user: .user) else Message::NotSupported.new() end end |