Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const EGClient = require('epicgames-client').Client;
- const Fortnite = require('epicgames-fortnite-client');
- const { ESubGame } = Fortnite;
- const { EPlatform } = require('epicgames-client');
- const { EInputType } = require('epicgames-client');
- let eg = new EGClient({
- email: '',
- password: '',
- debug: console.log
- });
- eg.init().then(async (success) => {
- var current_party;
- if(!success)
- throw new Error('Cannot initialize EpicGames launcher.');
- if(!await eg.login())
- throw new Error('Cannot login on EpicGames account.');
- const fortnite = await eg.runGame(Fortnite);
- const br = await fortnite.runSubGame(ESubGame.BattleRoyale);
- fortnite.communicator.on('party:member:joined', async (member) => {
- let CID = "CID_313_Athena_Commando_M_KpopFashion";
- let BID = "BID_138_Celestial";
- let EID = "EID_KPopDance03";
- fortnite.party.me.setOutfit("/Game/Athena/Items/Cosmetics/Characters/" + CID + "." + CID);
- fortnite.party.me.setEmote("/Game/Athena/Items/Cosmetics/Dances/" + EID + "." + EID);
- fortnite.party.me.setBackpack("/Game/Athena/Items/Cosmetics/Backpacks/" + BID + "." + BID);
- fortnite.party.me.setPickaxe("/Game/Athena/Items/Cosmetics/Pickaxes/" + PICKAXE_ID + "." + PICKAXE_ID);
- fortnite.party.me.setBattlePass(true, 100, 999999999, 999999999);
- console.log(`Member#${member.id} joined!`);
- console.log(`Members count: ${fortnite.party.members.length}`);
- if (member.id === eg.account.id) {
- }
- });
- fortnite.communicator.on('party:invitation', async (invitation) => {
- current_party = invitation.party;
- await invitation.accept()
- });
- fortnite.communicator.on('friend:request', async (friendops) => {
- let friendid = lookup(friendops);
- eg.communicator.sendMessage(friendid, "Sorry, Syfe's Private Bot Doesn't Accept Friend Requests.")
- eg.communicator.declineFriendRequest(friendid)
- });
- eg.communicator.on('friend:message', async (data) => {
- var args = data.message.split(" ");
- if(args[0].includes('CID_')){
- CID = args[0];
- try {
- fortnite.party.me.setOutfit("/Game/Athena/Items/Cosmetics/Characters/" + args[0] + "." + args[0]);
- eg.communicator.sendMessage(data.friend.id, "Skin set to " + args[0]);
- } catch {
- eg.communicator.sendMessage(data.friend.id, "Please use CID");
- }
- }
- if(args[0].includes('EID_')){
- EID = args[0];
- try {
- fortnite.party.me.setEmote("/Game/Athena/Items/Cosmetics/Dances/" + args[0] + "." + args[0]);
- eg.communicator.sendMessage(data.friend.id, "Emote set to " + args[0]);
- } catch {
- eg.communicator.sendMessage(data.friend.id, "Please use EID");
- }
- }
- if(args[0].includes('Pickaxe_ID_')){
- let PICKAXE_ID = args[0];
- try {
- fortnite.party.me.setPickaxe("/Game/Athena/Items/Cosmetics/Pickaxes/" + args[0] + "." + args[0]);
- eg.communicator.sendMessage(data.friend.id, "Pickaxe set to " + args[0]);
- } catch {
- eg.communicator.sendMessage(data.friend.id, "Please use Pickaxe_ID");
- }
- }
- if(args[0].includes('BID_')){
- BID = args[0];
- try {
- fortnite.party.me.setBackpack("/Game/Athena/Items/Cosmetics/Backpacks/" + args[0] + "." + args[0]);
- eg.communicator.sendMessage(data.friend.id, "Backbling set to " + args[0]);
- } catch {
- eg.communicator.sendMessage(data.friend.id, "Please use BID");
- }
- }
- if (args[0] == "!status"){
- var mess = data.message.replace("!status", "");
- fortnite.communicator.updateStatus(mess);
- communicator.sendMessage(data.friend.id, 'Status set to ' + mess + "!");
- }
- if(args[0] == "!banner"){
- try {
- fortnite.party.me.setBanner(100, args[1], args[2]);
- eg.communicator.sendMessage(data.friend.id, "Banner set to " + args[1] + " " + args[2]);
- } catch {
- eg.communicator.sendMessage(data.friend.id, "Please use !banner BANNER COLOR");
- }
- }
- if(args[0] == "!sbp"){
- try {
- fortnite.party.me.setBattlePass(true, 100, 999999999, 999999999);
- eg.communicator.sendMessage(data.friend.id, "BP set to 'true, 100, 999999999, 999999999'");
- } catch {
- eg.communicator.sendMessage(data.friend.id, "Please use !bp");
- }
- }
- if(args[0] == "!bp"){
- try {
- fortnite.party.me.setBattlePass(args[1], args[2], args[3], args[4]);
- eg.communicator.sendMessage(data.friend.id, "BP set to " + args[1] + " " + args[2] + " " + args[3] + " " + args[4] + "!");
- } catch {
- eg.communicator.sendMessage(data.friend.id, "Please use !bp TRUE/FALSE LEVEL SELFXP FRIENDXP");
- }
- }
- if(args[0] == "!stop"){
- try {
- fortnite.party.me.clearEmote();
- eg.communicator.sendMessage(data.friend.id, "Emote cleared!");
- } catch {
- eg.communicator.sendMessage(data.friend.id, "Please use !stop");
- }
- }
- if(args[0] == "!platform"){
- try {
- fortnite.party.me.setPlatform(args[1]);
- eg.communicator.sendMessage(data.friend.id, "Set Platform to " + args[1] + " !");
- } catch {
- eg.communicator.sendMessage(data.friend.id, "Please use !platform PLATFORM");
- }
- }
- if(args[0] == "!input"){
- try {
- fortnite.party.me.setInputType(args[1]);
- eg.communicator.sendMessage(data.friend.id, "Set Input to " + args[1] + " !");
- } catch {
- eg.communicator.sendMessage(data.friend.id, "Please use !input INPUTTYPE");
- }
- }
- if(args[0] == "!ready"){
- try {
- fortnite.party.me.setReady(args[1]);
- eg.communicator.sendMessage(data.friend.id, "Set Ready to " + args[1] + " !");
- } catch {
- eg.communicator.sendMessage(data.friend.id, "Please use !ready TRUE/FALSE");
- }
- }
- });
- fortnite.communicator.updateStatus('MRmodbot | Is Awesome!');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement