-
Send Scrapbox Notifications to GAS and notify Slack from GAS.
-
Filter out entries with author_name as “bluemountain” via GAS.
-
When performing Scrapbox Limited Public Operation, there have been instances where I noticed other people’s posts.
- I would like to be able to view those posts.
-
I want to send this to Discord instead of Slack (blu3mo).
- It can be done in the same way using a webhook.
-
Done. gas.js
const webhook_url = ""
function doPost(e) {
const author_name = JSON.parse(e.postData.contents).attachments[0].author_name
if (author_name !== "Bluemountain") {
UrlFetchApp.fetch(webhook_url, {
method: "POST",
"Content-Type": "application/json",
payload: e.postData.contents
})
}
}
-
- Only notifications for entries other than my own are displayed like this.
-
/youkan-brain/Scrapboxに通知は設定しなくていいと思っているI received a comment like this from (tkgshn) before, and I would like to hear their opinion (inoue2002)(inoue2002).