Class: Twitch::Bot::SlowModeParser

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



121
122
123
124
125
126
# File 'lib/twitch/bot/message_parser.rb', line 121

def call
  Message::SlowMode.new(
    status: message.tags["slow"],
    channel: message.channel,
  )
end