Skip to content

Instantly share code, notes, and snippets.

@carlosmarte
carlosmarte / test.ts
Created March 30, 2019 05:32 — forked from ninoseki/test.ts
Send a screenshot (by using puppeteer) to Slack
import request from "request";
import puppeteer from "puppeteer";
const API_URL = "https://slack.com/api/files.upload";
const SLACK_API_TOKEN = process.env.SLACK_API_TOKEN as string;
const CHANNEL = "general";
(async () => {
const url = "http://neverssl.com"
const browser = await puppeteer.launch();