I am using slack, built a BOT that and subscribed an event message.group
I want to build my projects via my BOT, once I post my predefined deploy command it will start execution the script I built, but it will try again and again by self after post a single command.
slack documentation says:
Your app should respond to the event request with an HTTP 2xx within three seconds. If it does not, we'll consider the event delivery attempt failed. After a failure, we'll retry three times, backing off exponentially. We recommend responding to events with a HTTP 200 OK as soon as you can. You may want to avoid processing and reacting to events within the same process handling event reception.
I have set below code at the beginning of my script like this way-
header("HTTP/1.1 200 OK");
echo "HTTP 200 OK";
it dose not work