CS 377Q | Stanford University | Spring 2022
In addition to cloning the reop, you will also need to create the file slack.js
, which should contain:
async function sendSlack(message) {
console.log(message);
const url = "SECRET_SLACK_WEBHOOK_URL";
fetch(url, {
method: 'POST',
body: JSON.stringify({ "message": message }),
});
}