Guest User

Untitled

a guest
Jun 20th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  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('token');
Add Comment
Please, Sign In to add comment