Advertisement
gamie0412

Untitled

May 30th, 2021
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. const Discord = require('discord.js');
  2.  
  3. const client = new Discord.Client();
  4.  
  5. const prefix = '-';
  6.  
  7. client.once('ready', () => {
  8. console.log('Safezone is online!');
  9. });
  10.  
  11. client.on('message', message =>{
  12. if(!message.content.startsWith(prefix) || message.author.bot) return;
  13.  
  14. const args = message.content.slice(prefix.length).split(/ +/);
  15. const command = args.shift().toLowerCase();
  16.  
  17. if(command === 'ping'){
  18. message.channel.send('pong!');
  19. } else if (command == 'lol'){
  20. message.channel.send('whats so funny?');
  21. }
  22. });
  23.  
  24. client.login('ODQ4NjA5MjYxNDgzNDU4NjEw.YLPG9g.64RjvqNwdmsqqC8hwnbHRURSMDQ')
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement