Skip to content

Commit

Permalink
feat: slack event subscriptions challenge api
Browse files Browse the repository at this point in the history
  • Loading branch information
xryuseix authored Jan 28, 2024
1 parent f139946 commit da37939
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/slack.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ function dajare(jsonObj) {
}

function doPost(e) {
const params = JSON.parse(e.postData.getDataAsString());
if (params.type === 'url_verification') {
return ContentService.createTextOutput(params.challenge);
}
const cache = makeCache();
if (!cache.get("used")) {
// GASを使用中にする
Expand Down

0 comments on commit da37939

Please sign in to comment.