Facebook
From Reliable Bongo, 3 Years ago, written in Plain Text.
This paste is a reply to Re: Bot.js from Innocent Horse - go back
Embed
Viewing differences between Re: Bot.js and Re: Re: Bot.js
const Discord = require('discord.js');

const client = new Discord.Client({
    
intents: [
    Discord. Intents. FLAGS.GUILDS,
    Discord.Intents.FLAGS.GUILD_MESSAGES
    ]
});


client.on('ready', () => {
  console.log(`Logged in as ${client.user.tag}!`);
});

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




client.login('token');