lib/cinch/plugins/dicebag.rb
# Roll a random assortment of dice, total the rolls, and record the score.
# @param [Message] message Nickname of the user rolling.
# @return [String] A description of the roll that took place
Roll a random assortment of dice, total the rolls, and record the score.
Roll a random assortment of dice total the rolls and record the score .
def dicebag(message)
        return if Cinch::Toolbox.sent_via_private_message?(message)
        @bag.roll
        user = message.user.nick
        channel = message.channel.name
        message.reply "#{user} rolls a #{@bag.size} bag of dice totalling " \
                      "#{@bag.score}. #{score_check(user, channel, @bag.score)}"
      end
def dicebag ( message ) return if Cinch :: Toolbox . sent_via_private_message? ( message ) @bag . roll user = message . user . nick channel = message . channel . name message . reply "#{user} rolls a #{@bag.size} bag of dice totalling " "#{@bag.score}. #{score_check(user, channel, @bag.score)}" end
Roll a random assortment of dice, total the rolls, and record the score.
Roll a random assortment of dice total the rolls and record the score .
A description of the roll that took place
A description of the roll that took place
String
message
<not_specific>
<not_specific>
message Nickname of the user rolling.
message Nickname of the user rolling .