lospi.js 554 Bytes
const { SlashCommandBuilder } = require('@discordjs/builders');
const { MessageEmbed } = require('discord.js');
const axios = require("axios");
const cheerio = require("cheerio");

module.exports = {
	data: new SlashCommandBuilder()
		.setName('시세')
		.setDescription('현재 100크리스탈 당 골드 시세를 조회합니다.'),
	async execute(interaction) {
        async function getHTML() {
			try {
				return await axios.get("https://www.mgx.kr/lostark/goldexchange/");
			} catch (error) {
				console.error(error);
		}
		};
        
	},
};