Method: Botbckt::StarJar#call

Defined in:
lib/botbckt/commands/star_jar.rb

#call(giver, channel, receiver) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
# File 'lib/botbckt/commands/star_jar.rb', line 42

def call(giver, channel, receiver)
  receiver.split(' ').each do |rcv|
    if rcv != freenode_split(giver).first
      push(rcv) do |total|
        say "#{rcv}: Gold star for you! (#{total})", channel
      end
    else
      say "#{rcv}: No star for you!", channel
    end
  end
end