[Discord Bot] 코로나 확진자 보여주기
[Discord Bot] 코로나 확진자 보여주기
2020.03.29const request = require('request-promise'); const cheerio = require('cheerio'); const { RichEmbed } = require('discord.js'); async function getAddress(args) { var url = 'http://ncov.mohw.go.kr/index_main.jsp'; let virus, virus_text; let virus_list = []; let options = { url: url, method: 'GET', headers: { 'Accept-Language': 'ko-KR,ko;q=0.8,en-US;q=0.5,en;q=0.3', 'User-Agent': 'Mozilla/5.0 (Window..
[Discord Bot] 미세먼지 시각화로 보여주기
[Discord Bot] 미세먼지 시각화로 보여주기
2020.03.29const request = require('request-promise'); const Pageres = require('pageres'); const fs = require('fs-extra'); const path = require('path'); const { RichEmbed } = require('discord.js'); async function capture() { await new Pageres({delay: 2, filename: 'dust'}) .src('https://earth.nullschool.net/#current/particulates/surface/level/overlay=pm10/orthographic=127.53,39.09,2196/loc=127.333,37.782', ..