Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
1,513
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. const EGClient = require('epicgames-client').Client;
  2. const Fortnite = require('epicgames-fortnite-client');
  3. const EInputType = require('epicgames-client').EInputType;
  4.  
  5. var _ = require('lodash');
  6.  
  7. accountid = 'your bot accountID';
  8. status = 'FOLLOW @IBRIKZLEAKS ON TWITTER IF YOU NEED HELP';
  9.  
  10. let eg = new EGClient({
  11. email: 'ibrikz123@gmail.com',
  12. password: 'Ferari1234510',
  13. debug: console.log
  14. });
  15.  
  16. (async _ => {
  17.  
  18. if(!await eg.init() || !await eg.login())
  19. throw 'Cannot connect to Epic Games servers...';
  20.  
  21. let communicator = eg.communicator;
  22. let fortnite = await eg.runGame(Fortnite);
  23.  
  24. communicator.updateStatus(status);
  25.  
  26. communicator.on('friend:request', async data => {
  27. if(data.friend.id != accountid){
  28. eg.acceptFriendRequest(data.friend.id).then(async (ac_result) => {
  29. /*adding friend ops was seccessful*/
  30. });
  31. }
  32. });
  33.  
  34. fortnite.communicator.on('party:invitation', async invitation => {
  35.  
  36. invitation.party.me.setBRCharacter('/Game/Athena/Items/Cosmetics/Characters/CID_029_Athena_Commando_F_Halloween.CID_029_Athena_Commando_F_Halloween');
  37.  
  38. await invitation.accept();
  39.  
  40. invitation.party.me.setBattlePass(true, level, xp,otherxp);
  41.  
  42. });
  43.  
  44. fortnite.communicator.on('friend:message', async data => {
  45.  
  46. if(data.message == 'ping'){
  47. communicator.sendMessage(data.friend.id, 'pong');
  48. }
  49.  
  50. });
  51.  
  52. /* rest of your code goes here */
  53.  
  54. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement