     if owed
       userInfo(user, 'owed', 0)
       msg.reply "Thanks! Sending you #{owed}STR right now!"
-      tip_account targetUser, owed, (resp, err) ->
+      tip_account userInfo(user, 'account_id'), owed, (err, resp) ->
         if err
           msg.reply "error: #{err.error_message}"
         else

  trusted: true
  #trace: true
  servers: servers
  local_fee: true
)

module.exports = (robot) ->

check_account = (id, cb) ->
  remote.connect ->
    request = remote.requestAccountInfo(id)
    request.callback cb
    request.request()

default_amt = Amount.from_human(tip_amount + "STR")
tip_account = (address, amt, cb) ->
  if not cb and amt
    cb = amt
    amt = null
  amt = amt && Amount.from_human(amt + "STR")
  remote.connect ->
    remote.set_secret(stripler_id, stripler_secret)
    transaction = remote.transaction()
    transaction.payment(
      from: stripler_id
      to: address
      amount: amt or default_amt
    )
    transaction.submit(cb)
