Advertisement
Guest User

untitled

a guest
May 22nd, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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('NTgwODA3OTI0Mzc3NDUyNTY0.XOYUWQ.8c9sa5rZvcJVoI06l_uqRtCTMcs');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement