Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
3,256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. const Discord = require('discord.js');
  2. const client = new Discord.Client();
  3.  
  4. const swearWords = ["darn", "shucks", "frak", "shite"];
  5. client.on('message', message => {
  6.  
  7. if( swearWords.some(word => message.content.includes(word)) ) {
  8. message.reply("Oh no you said a bad word!!!");
  9. message.delete();
  10. }
  11. });
  12.  
  13.  
  14.  
  15. client.on('message', msg => {
  16. if (msg.content === 'shit'){
  17.  
  18.  
  19. const shit = require('fortnite');
  20. // Create an instance of the client with your API Key
  21. const fortnite = new shit('nnnnnnnnnnnnnnnnn');
  22.  
  23. // All methods
  24. fortnite.user('ej lmao', 'pc').then(msg.reply(`${profile.stats.solo.Mode.score}`));
  25.  
  26. }
  27. });
  28.  
  29.  
  30.  
  31. client.login('gggggggggggggggggggg');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement