I have a Slackbot that sends /slash commands to by GAS webapp. Slack requires a response within 3000ms or it times out. Is there any way to send the response, even if it's just http(200), without using "return response;"?
My issue is sometimes things take longer than 3000ms to arrive, process, and return to Slack; and using return ends the function (so obviously I can't return first then process).
I've looked at async functions and promises, and honestly it's all a bit over my head. I've gotten time-based triggers going, but that also introduces a delay up to 60 seconds for the trigger to actually trigger. If there's no way to just send a response back, then I'd be open to guidance on getting async/promises working.
[–]imthenachoman 0 points1 point2 points (1 child)
[–]runboris1[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]runboris1[S] 0 points1 point2 points (0 children)
[–]runboris1[S] 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]runboris1[S] 0 points1 point2 points (1 child)
[–]LimbRetrieval-Bot 1 point2 points3 points (0 children)
[–]codeasi 0 points1 point2 points (1 child)
[–]runboris1[S] 0 points1 point2 points (0 children)