0
Q:

disocrd.js

const Discord = require ('discord.js')
const bot = new Discord.Client()

bot.on("ready", async () => {
    console.log("the bot is ready")
})

client.on('message', msg => {
  if (msg.content === '!ping')
    msg.reply(
      "pong!"
    )
});


//put here the token
bot.login('TOKEN')
2

New to Communities?

Join the community