     "#{balance} :coffee:#{unless balance == 1 then 's' else ''}"
 
   accountDetailsFormatter: (account) ->
-    "_+#{account.totals.deposited}_ / _-#{account.totals.withdrawn}_, _Txs:_ #{account.transactions}, _Opened:_ #{@shortDateFormatter account.created}#{if account.updated then ", _Updated:_ #{@longDateFormatter account.updated}" else ""}"
+    "_+#{account.totals.deposited}_ / _-#{account.totals.withdrawn}_, " +
+      "_Txs:_ #{account.transactions}, _Opened:_ #{@shortDateFormatter account.created}" +
+      " #{if account.updated then ", _Updated:_ #{@longDateFormatter account.updated}" else ""}"
 
   topListEntryFormatter: (index, account) ->
     "_#{index}._ **#{@clientFormatter account.accountNumber}** #{@balanceFormatter account.balance}"

    @brain.userForId accountNumber

  accountFormatter: (account) ->
    "**#{@clientFormatter account.accountNumber}**: #{@balanceFormatter account.balance} (#{@accountDetailsFormatter account})"

  shortDateFormatter: (date) ->
    dateformat date, "mmm d yyyy h:MMtt"

      return

    if not coffeeconomy.hasAccount client
      msg.send "#{client.name} hasn't opened an account by `#{robot.alias}brewing` or " +
          "`#{robot.alias}dibs`ing yet! #{statusEmoji.random('failure')}"
      return
    msg.send coffeeconomy.accountFormatter coffeeconomy.account client

  robot.respond /coffee top(?:\s+(\d+))?$/i, (msg) ->
    limit = parseInt msg.match[1]?.trim() || 10
    count = 1
    topList = (
      coffeeconomy.topListEntryFormatter count++, account\
      for account in coffeeconomy.top limit
    )
    msg.send "These are the top :coffee: accounts:\n #{topList.join('\n')}"

  robot.respond /coffee bottom(?:\s+(\d+))?$/i, (msg) ->
    limit = parseInt msg.match[1]?.trim() || 10
    total = coffeeconomy.length()

    bottomList = (
      coffeeconomy.topListEntryFormatter total--, account\
      for account in coffeeconomy.bottom limit
    )

    msg.send "These are the bottom :coffee: accounts:\n #{bottomList.join('\n')}"

  robot.respond /brewing\s*$/i, (msg) ->
    if isBrewing()
      msg.send "A brew is already underway by (@#{brewing.barista})! " +
          "#{statusEmoji.random('failure')}\n" + freeSpots()
      return

    createBrew msg
