anchor.diff:              doit(IrcBot, Channel);
           {in, IrcBot, [_Nick, _Name, <<"PRIVMSG">>, Channel = <<"#lugola">>, <<"!присутни">>]} ->
               doit(IrcBot, Channel);
  -        {in, IrcBot, [_, _, <<"001">>, _Nick, _]} ->
  -            spawn(fun() -> status_loop(IrcBot) end);
  -        _ -> ok,
  -        {ok, State}
  -    end.
  +        _ -> ok
  +    end,
  +    {ok, State}.
   
   
   doit(IrcBot, Channel) ->
  
positive.code: 
  init(_Args) ->
      hackney:start(),
      {ok, ok}.
  
  
  
negative.code:             <<"{error ", N/binary, "}">>
      end.
  
  status_loop(LastStatus) ->
      Url = <<"http://hacklab.ot.mk/status/open">>,
      Options = [ {recv_timeout, 120000}, {follow_redirect, true} ],
      case hackney:get(Url, [], <<>>, Options) of
          {ok, 200, _, Ref} ->
              {ok, Body} = hackney:body(Ref, ?MAXBODY),
              case Body of
                  LastStatus ->
                      status_loop(LastStatus) ;
                  _ ->
                      IrcBot = ircbot_api:new(whereis(freenode)),
                      IrcBot:notice("#lugola", Body),
                      status_loop(Body)
              end;
          {error,timeout} ->
              status_loop(LastStatus);
          _ ->
              status_loop(LastStatus)
      end.
  
  
  