edubkendo
9/3/2012 - 10:10 PM

test that our bot says something when someone joins the channel

test that our bot says something when someone joins the channel

      it "should say something when someone joins the channel", (done) ->
        server = net.createServer()
        server.listen(6667, 'localhost')
        server.on 'connection', (socket) ->
          socket.emit "join", "bottest123", "server", "test"
          socket.on 'data', () ->
            socket.end()
            server.close()
            done()