   message: (msg) =>
     # Ignore our own messages
     return if msg.user == @self.id
-    console.log msg
+    console.log msg.text
 
   userChange: (user) =>
 


class SlackConnection
  constructor: (@token) ->
    console.log "Yaya"
    @client = new SlackClient @token, true, true

    console.log "Yaya"
    @client.on 'error', @.error
    @client.on 'loggedIn', @.loggedIn
    @client.on 'open', @.open

    @client.on 'message', @.message
    @client.on 'userChange', @.userChange

    @client.login()

  error: (error) =>
