Facebook
From SinneR, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 411
  1. const Discord = require('discord.js');
  2.  
  3. const client = new Discord.Client({
  4.    
  5. intents: [
  6.     Discord. Intents. FLAGS.GUILDS,
  7.     Discord.Intents.FLAGS.GUILD_MESSAGES
  8.     ]
  9. });
  10.  
  11.  
  12. client.on('ready', () => {
  13.   console.log(`Logged in as ${client.user.tag}!`);
  14. });
  15.  
  16. client.on('message', msg => {
  17.   if (msg.content === 'ping') {
  18.       msg.reply('**pong!**');
  19.   }
  20. });
  21.  
  22.  
  23.  
  24.  
  25. client.login('token');

Replies to Bot.js rss

Title Name Language When
Re: Bot.js Innocent Horse text 2 Years ago.