 
 exports.use = (robot) ->
   new IrcBot robot
-

    @bot.part channel, () ->
      console.log('left %s', channel)

  run: ->
    self = @



    bot.addListener 'join', (channel, who) ->
        console.log('%s has joined %s', who, channel)
        user = self.createUser channel, who
        self.receive new Robot.EnterMessage(user)

    bot.addListener 'part', (channel, who, reason) ->
        console.log('%s has left %s: %s', who, channel, reason)
