1const Discord = require ('discord.js')
2const bot = new Discord.Client()
3
4bot.on("ready", async () => {
5 console.log("the bot is ready")
6})
7
8client.on('message', msg => {
9 if (msg.content === '!ping')
10 msg.reply(
11 "pong!"
12 )
13});
14
15
16//put here the token
17bot.login('TOKEN')