 #   hubot coffee balance [user] - Check your coffee balance (defaults to you)
 #   hubot coffee top [n] - See the top coffee balances (defaults to 10)
 #   hubot coffee bottom [n] - See the bottom coffee balances (defaults to 10)
-#   hubot coffee bounty n - Issue a bounty to be claimed by the next brew
+#   hubot coffee bounty <n> - Issue a bounty worth `<n>` :coffee:s to be claimed by the next barista
 #
 #
 # Author:

    proposedReward = parseInt msg.match[1]?.trim() || 0
    account = coffeeconomy.account issuer

    if not coffeeconomy.hasAccount issuer
      msg.send "Sorry @#{issuer}, you don't have an account with us! #{statusEmoji.random('failure')}"
      return
    
    if proposedReward > account.balance
      msg.send "Whoa whoa whoa @#{issuer}, you don't have that many :coffee:s cowboy. #{statusEmoji.random('failure')} \n" +
        "Your current balance is: \n#{coffeeconomy.accountFormatter account}"

      withdrawn: 0
    created: new Date()

  initRewards: (account) ->
    account.totals.rewards =
      earned: 0
      paid: 0

  saveAccount: (account) ->
    account.updated = new Date()
    @storage[account.accountNumber] = account
