module Balotelli::Core::Utils

Constants

JOIN_REGEX
NICK_REGEX
PRIV_MSG_REGEX

Public Instance Methods

nick_from_user(str) click to toggle source
# File lib/balotelli/core/utils.rb, line 10
def nick_from_user(str)
  str.match(NICK_REGEX)[1]
end
table_regex(nick) click to toggle source
# File lib/balotelli/core/utils.rb, line 14
def table_regex(nick)
  /\A:?(\S+) \d+ #{nick} \S (#\S+) :?(.*)/
end