class Twitch::Bot::PrivMsgCommandParser
Parses a PRIVMSG IRC command
Public Instance Methods
call()
click to toggle source
# File lib/twitch/bot/message_parser.rb, line 56 def call user = message.user text = message.text if user == "twitchnotify" if text.match?(/just subscribed!/) Message::Subscription.new( user: message.params.last.split(" ").first, ) else Message::NotSupported.new(message) end else Message::UserMessage.new(text: text, user: user) end end