This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |