class Ruboty::Actions::Slot

Public Instance Methods

call() click to toggle source
# File lib/ruboty/actions/slot.rb, line 5
def call
  slot_machine = Ruboty::Slot::GumFruit.new
  slot_machine.pull_lever
  slot_machine.reels.count.times do |n|
    slot_machine.push_stop_button(n)
  end
  message.reply("#{$/}#{slot_machine.to_s}")
end