         invalidChannelError relay
     
   robot.leave (res) ->
+
+    if IGNORE_BOTS and  client.getUserByID(res.message.user.id).is_bot then return
+
     for relay in relays
       if res.message.room isnt relay.localRoom then continue
       user = { room: relay.remoteRoom }

        invalidChannelError relay

  robot.enter (res) ->
    for relay in relays
      if res.message.room isnt relay.localRoom then continue
      user = { room: relay.remoteRoom }


  robot.hear /(.+)/i, (res) =>

    if IGNORE_BOTS and  client.getUserByID(res.message.user.id).is_bot then return

    for relay in relays
      if res.message.room isnt relay.localRoom then continue
      user = { room: relay.remoteRoom }
