 
       it 'should register respond listeners', ->
 
-        expect(@robot.respond).to.have.been.calledWith(/rcon (say|message|msg) (.*) to (.*)/i)
-        expect(@robot.respond).to.have.been.calledWith(/rcon send (list|the list|roster|players) to (.*)/i)
-        expect(@robot.respond).to.have.been.calledWith(/rcon (change map|changelevel|map) on (.*) to (.*)/i)
+        expect(@robot.respond).to.have.been.calledWith(/rcon (say|message|msg) (.*) to (.*)$/i)
+        expect(@robot.respond).to.have.been.calledWith(/rcon send (list|the list|roster|players) to (.*)$/i)
+        expect(@robot.respond).to.have.been.calledWith(/rcon (change map|changelevel|map) on (.*) to (.*)$/i)
 
     describe 'commands', ->
 


      it 'should register respond listeners', ->

        expect(@robot.respond).to.have.been.calledWith(/sg|new/i)
        expect(@robot.respond).to.have.been.calledWith(/cg|kill/i)
        expect(@robot.respond).to.have.been.calledWith(/format (.*)/i)
        expect(@robot.respond).to.have.been.calledWith(/(random (.*) map)|(map (.*))/i)
        expect(@robot.respond).to.have.been.calledWith(/server (.*)/i)
        expect(@robot.respond).to.have.been.calledWith(/change (.*) to (.*)/i)

    describe 'commands', ->



        it 'should match with input strings', ->

          expect('sg').to.match(/sg$|new$/i)
          expect('new').to.match(/sg$|new$/i)

      describe '!cg', ->

        it 'should match with input strings', ->

          expect('cg').to.match(/cg$|kill$/i)
          expect('kill').to.match(/cg$|kill$/i)

      describe '!format', ->

        it 'should match with input strings', ->

          expect('format 5').to.match(/format ([0-9]*)$/i)

      describe '!map', ->

        it 'should match with input strings', ->

          expect('random abc map').to.match(/(random (.*) map)$|(map (.*))$/i)
          expect('map abc').to.match(/(random (.*) map)$|(map (.*))$/i)

      describe '!server', ->

        it 'should match with input strings', ->

          expect('server abc').to.match(/server (.*)$/i)

      describe '!change', ->

        it 'should match with input strings', ->

          expect('change abc to abc').to.match(/change (.*) to (.*)$/i)
