Skip to content

Instantly share code, notes, and snippets.

View hiroy's full-sized avatar

YAMAOKA Hiroyuki hiroy

View GitHub Profile
@hiroy
hiroy / index.js
Created August 29, 2019 13:55
SSL/TLSの証明書の有効期間をSlackに通知するツール
'use strict';
const { IncomingWebhook } = require('@slack/client');
const https = require('https');
const moment = require('moment');
async function sendSlackNotification(message) {
const url = process.env.SLACK_INCOMING_WEBHOOK_URL;
const slackIncomingWebhook = new IncomingWebhook(url);
return await slackIncomingWebhook.send({