Showing
1 changed file
with
14 additions
and
0 deletions
chatBot.js
0 → 100644
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 |
-
Please register or login to post a comment