-- OTS Lab privacy hardening: disable the upstream third-party BotServer.
-- Keep the public API as no-op functions because optional vBot scripts call it.
local context = G.botContext

context.BotServer = {
  ping = 0,
  _callbacks = {},
  _lastMessageId = 0,
  _wasConnected = false,
  _websocket = nil,
  disabled = true
}

context.BotServer.init = function(_name, _channel)
  return false
end

context.BotServer.terminate = function()
  context.BotServer._websocket = nil
  context.BotServer._callbacks = {}
end

context.BotServer.listen = function(_topic, _callback)
  return false
end

context.BotServer.send = function(_topic, _message)
  return false
end

context.BotServer.isConnected = function()
  return false
end

context.BotServer.hasListen = function(_topic)
  return false
end

context.BotServer.resetReconnect = function()
end
