Class: Twitch::Bot::RoomStateCommandParser
- Inherits:
-
CommandParser
- Object
- CommandParser
- Twitch::Bot::RoomStateCommandParser
- Defined in:
- lib/twitch/bot/message_parser.rb
Overview
Parses a ROOMSTATE 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
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/twitch/bot/message_parser.rb', line 102 def call = { "slow" => SlowModeParser, "followers-only" => FollowersOnlyModeParser, "subs-only" => SubsOnlyModeParser, "r9k" => R9kModeParser, } .each do |tag, parser| if ..include?(tag) return parser.new().call end end Message::NotSupported.new() end |