 Readline = require 'readline'
 
-Robot   = require("hubot").robot()
-Adapter = require("hubot").adapter()
+Robot   = require("hubot").Robot
+Adapter = require("hubot").Adapter
+{TextMessage,EnterMessage,LeaveMessage,CatchAllMessage} = require '../../../src/message'
 
 class SkypeAdapter extends Adapter
   send: (user, strings...) ->

        room: user.room
        message: out.join('')
    @skype.stdin.write json + '\n'
    @skype.stdin.flush()

  reply: (user, strings...) ->
    @send user, strings...

            user.name = decoded.user
        user.room = decoded.room
        return unless decoded.message
        @receive new TextMessage user, decoded.message
    @skype.stderr.on 'data', (data) =>
        console.log "ERR"
        console.log data.toString()
