Class: Twitch::Bot::SubsOnlyModeParser

Inherits:
CommandParser show all
Defined in:
lib/twitch/bot/message_parser.rb

Instance Attribute Summary

Attributes inherited from CommandParser

#message

Instance Method Summary collapse

Methods inherited from CommandParser

#initialize

Constructor Details

This class inherits a constructor from Twitch::Bot::CommandParser

Instance Method Details

#callObject



138
139
140
141
142
143
# File 'lib/twitch/bot/message_parser.rb', line 138

def call
  Message::SubsOnlyMode.new(
    status: message.tags["subs-only"],
    channel: message.channel,
  )
end