       content: "You are now #{e.d}"
       img:      atom.config.get 'aTox.userAvatar'
     }
-
-    @event.emit  'Terminal', {cid: -2, msg: "You are now #{e.d}"} #TODO: Send this to all chat windows
+    color = @getColorByStatus(e.d)
+    @event.emit  'Terminal', {cid: -2, msg: "You are now <span style='color:#{color}'>#{e.d}</span>"} #TODO: Send this to all chat windows
+
+  getColorByStatus: (status) ->
+    console.log status
+    if status is "online"
+      return "rgba(50, 255, 50, 1)"
+    else if status is "offline"
+      return "rgba(80, 80, 80, 1)"
+    else if status is "busy"
+      return "rgba(255, 50, 50, 1)"
+    else if status is "away"
+      return "rgba(255, 255, 50, 1)"
 
   friendAutoremove: (params) ->
     return @friendOnline[params.fid] = 0 if params.online is true


    @TOX.start()
    @inf "Started TOX"
    @inf "Name:  #{atom.config.get 'aTox.userName'}"
    @inf "My ID: #{@TOX.getAddressHexSync()}"

    @friendOnline = []


      tid:    fNum
      pubKey: e.publicKey()
    }
    @inf "Added Friend #{fNum}" #TODO: Move this into the contacts, add the randomized color to this string within the contact

    @friendOnline[fNum] = -1

