김건우

discord.js install

1 +const Discord = require("discord.js")
2 +const client = new Discord.Client()
3 +
4 +client.on("ready", () => {
5 + console.log(`Logged in as ${client.user.tag}!`)
6 +})
7 +
8 +client.on("message", msg => {
9 + if (msg.content === "ping") {
10 + msg.reply("Pong!")
11 + }
12 +})
13 +
14 +client.login('OTA3OTU2NjY1MTEzMDE4NDA4.YYuuiQ.Rn2yQ9lGPLr_24sky29TWQHLOYA');
...\ No newline at end of file ...\ No newline at end of file