anchor.diff:  -behaviour(gen_server).
   
   -define(JID, "mod_copilot@localhost").
  +-define(REPORT_INTERVAL, 60000).
   
   -include("ejabberd.hrl").
   -include("jlib.hrl").
  
positive.code: handle_cast(_Msg, State) ->
    {noreply, State}.
  
  handle_info(_Info, State) ->
    {noreply, State}.
  
  
negative.code:   end,
    {ok, Conn} = mongo:connect(Host),
  
    timer:send_interval(?REPORT_INTERVAL, connected_users_interval),
  
    State = [{opts, Args},   % Module's settings, as defined in ejabberd.cfg
             {mongo, Conn}   % MongoDB connection
            ],
    {ok, State}.
  
  handle_call(_Request, _From, State) ->
    {reply, ok, State}.
  
  %@doc Handles cases when agents connect and disconnect from the server
  handle_cast({connect, JID, IPAddress}, State) ->
  