class Ruboty::Roll::Actions::Roll

Public Instance Methods

call() click to toggle source
# File lib/ruboty/roll/actions/roll.rb, line 7
def call
  dice_set = Ruboty::Roll::DiceSet.new(count: count, max: max)
  message.reply(dice_set.roll.to_s)
end

Private Instance Methods

count() click to toggle source
# File lib/ruboty/roll/actions/roll.rb, line 14
def count
  message[:count].to_i
end
max() click to toggle source
# File lib/ruboty/roll/actions/roll.rb, line 18
def max
  message[:max].to_i
end