-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathmain.js
739 lines (715 loc) · 23.1 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
/* eslint-disable */
const { readFile, writeFile } = require('fs').promises;
const axios = require('axios').default;
const { Client } = require('fnbr');
const config = require("./config.json");
//API
const fetchCosmetic = async (name, type) => {
try {
const { data: cosmetic } = (await axios(`https://fortnite-api.com/v2/cosmetics/br/search?name=${encodeURI(name)}&type=${type}`)).data;
return cosmetic;
} catch (err) {
return undefined;
}
};
//Commands
const handleCommand = async (m) => {
if (!m.content.startsWith('!')) return;
const args = m.content.slice(1).split(' ');
const command = args.shift().toLowerCase();
//Cosmetics
//Skin
if (command === 'skin') {
const skin = await fetchCosmetic(args.join(' '), 'outfit');
if (skin) {
m.client.party.me.setOutfit(skin.id);
m.reply(`Set the skin to ${skin.name}!`);
} else m.reply(`The skin ${args.join(' ')} wasn't found!`);
//Emote
} else if (command === 'emote') {
const emote = await fetchCosmetic(args.join(' '), 'emote');
if (emote) {
m.client.party.me.setEmote(emote.id);
m.reply(`Set the emote to ${emote.name}!`);
} else m.reply(`The emote ${args.join(' ')} wasn't found!`);
//Backpack
} else if (command === 'backpack') {
const backpack = await fetchCosmetic(args.join(' '), 'backpack');
if (backpack) {
m.client.party.me.setBackpack(backpack.id);
m.reply(`Set the backpack to ${backpack.name}!`);
} else m.reply(`The backpack ${args.join(' ')} wasn't found!`);
//Emoji
} else if (command === 'emoji') {
const emoji = await fetchCosmetic(args.join(' '), 'emoji');
if (emoji) {
m.client.party.me.setEmoji(emoji.id);
m.reply(`Set the emoji to ${emoji.name}!`);
} else m.reply(`The emoji ${args.join(' ')} wasn't found!`);
//Banner
} else if (command === 'banner') {
const banner = await fetchCosmetic(args.join(' '), 'banner');
if (banner) {
m.client.party.me.setBanner(banner.id);
m.reply(`Set the emoji to ${banner.name}!`);
} else m.reply(`The banner ${args.join(' ')} wasn't found!`);
//Pickaxe
} else if (command === 'pickaxe') {
const pickaxe = await fetchCosmetic(args.join(' '), 'pickaxe');
if (pickaxe) {
m.client.party.me().setPickaxe(pickaxe.id);
m.reply(`Set the pickaxe to ${pickaxe.name}!`);
} else m.reply (`The pickaxe ${args.join(' ')} wasn't found!`);
//Purpleskull
} else if (command === 'purpleskull') {
m.client.party.me.setOutfit('CID_030_Athena_Commando_M_Halloween', [{ channel: 'ClothingColor', variant: 'Mat1' }]);
m.reply(`Set the skin to Purple Skull Trooper!`);
//Pinkghoul
} else if (command === 'pinkghoul') {
m.client.party.me.setOutfit('CID_029_Athena_Commando_F_Halloween', [{ channel: 'Material', variant: 'Mat3' }]);
m.reply(`Set the skin to Pink Ghoul Trooper!`);
//Chun-Li Mode
} else if (command === 'chunlimode') {
m.client.party.hideMembers(true);
m.client.party.me.setOutfit('CID_028_Athena_Commando_M_ChunLi', [{ channel: 'Material', variant: 'Mat1' }]);
m.client.party.me.setEmote('EID_PartyHips');
m.reply(`Have Fun (;!. If you want to stop then type the Command !default`);
//Default
} else if (command === 'default') {
m.client.party.hideMembers(false);
m.client.party.me.setReadiness(false);
m.party.me.setOutfit(config.cid);
m.party.me.setBackpack(config.bid);
m.party.me.setPickaxe(config.pickaxeId);
m.party.me.setLevel(config.level);
m.party.me.setBanner(config.banner, config.bannerColor);
m.reply(`Set the default settings!`);
//Help
} else if (command === 'help') {
m.reply(`HELP COMMANDS Open the Chat to see all the commands!
!help - Shows this message
Cosemtics:
!skin <skin> - Sets your skin
!emote <emote> - Sets your emote
!backpack <backpack> - Sets your backpack
!emoji <emoji> - Sets your emoji
!banner <banner> - Sets your banner
!pickaxe <pickaxe> - Sets your pickaxe
!purpleskull - Sets your skin to Purple Skull Trooper
!pinkghoul - Sets your skin to Pink Ghoul Trooper
!chunlimode - Activates the SUS Mode
!default - Sets the default settings
Fun & Util:
!ready - Sets you to ready
!unready - Sets you to unready
!gift - Gifts the whole Lobby the Item Shop
!hide - Hides Members
!unhide - Unhides Members
!level <level> - Sets your level
!showpickaxe - Shows your pickaxe
Info:
!discord - Shows the discord link`);
//Fun & Util
//Ready
} else if (command === 'ready') {
m.client.party.me.setReadiness(true);
m.reply(`Ready!`);
//Unready
} else if (command === 'unready') {
m.client.party.me.setReadiness(false);
m.reply(`Unready!`);
//Gift
} else if (command === 'gift') {
m.client.party.me.clearEmote();
m.client.party.me.setEmote('EID_NeverGonna');
m.reply(`Uhh, did you really think i was going to gift you?`);
//Hide
} else if (command === 'hide') {
m.client.party.hideMembers(true);
m.reply(`Hiding Members!`);
//Unhide Members
} else if (command === 'unhide') {
m.client.party.hideMembers(false);
m.reply(`Unhiding Members!`);
//Level
} else if (command === 'level') {
m.client.party.me.setLevel(parseInt(content, 10));
m.reply(`Set your level to ${content}!`);
//Show Pickaxe
} else if (command === 'showpickaxe') {
m.party.me.setEmote('EID_IceKing');
m.reply(`Showing Pickaxe!`);
//Info
} else if (command === 'discord') {
m.reply(`Discord: https://discord.gg/https://discord.gg/DEDp2UQUx8`);
}
};
//Login and Auth
//Clients
(async () => {
let auth1;
try {
auth1 = { deviceAuth: JSON.parse(await readFile('./auths/deviceAuth.json')) };
} catch (e) {
auth1 = { authorizationCode: async () => Client.consoleQuestion('Please enter an Auth Code for Client 1: ') };
}
let auth2;
try {
auth2 = { deviceAuth: JSON.parse(await readFile('./auths/deviceAuth2.json')) };
} catch (e) {
auth2 = { authorizationCode: async () => Client.consoleQuestion('Please enter an Auth Code for Client 2: ') };
}
let auth3;
try {
auth3 = { deviceAuth: JSON.parse(await readFile('./auths/deviceAuth3.json')) };
} catch (e) {
auth3 = { authorizationCode: async () => Client.consoleQuestion('Please enter an Auth Code for Client 3: ') };
}
let auth4;
try {
auth4 = { deviceAuth: JSON.parse(await readFile('./auths/deviceAuth4.json')) };
} catch (e) {
auth4 = { authorizationCode: async () => Client.consoleQuestion('Please enter an Auth Code for Client 4: ') };
}
let auth5;
try {
auth5 = { deviceAuth: JSON.parse(await readFile('./auths/deviceAuth5.json')) };
} catch (e) {
auth5 = { authorizationCode: async () => Client.consoleQuestion('Please enter an Auth Code for Client 5: ') };
}
let auth6;
try {
auth6 = { deviceAuth: JSON.parse(await readFile('./auths/deviceAuth6.json')) };
} catch (e) {
auth6 = { authorizationCode: async () => Client.consoleQuestion('Please enter an Auth Code for Client 6: ') };
}
let auth7;
try {
auth7 = { deviceAuth: JSON.parse(await readFile('./auths/deviceAuth7.json')) };
} catch (e) {
auth7 = { authorizationCode: async () => Client.consoleQuestion('Please enter an Auth Code for Client 7: ') };
}
let auth8;
try {
auth8 = { deviceAuth: JSON.parse(await readFile('./auths/deviceAuth8.json')) };
} catch (e) {
auth8 = { authorizationCode: async () => Client.consoleQuestion('Please enter an Auth Code for Client 8: ') };
}
let auth9;
try {
auth9 = { deviceAuth: JSON.parse(await readFile('./auths/deviceAuth9.json')) };
} catch (e) {
auth9 = { authorizationCode: async () => Client.consoleQuestion('Please enter an Auth Code for Client 9: ') };
}
let auth10;
try {
auth10 = { deviceAuth: JSON.parse(await readFile('./auths/deviceAuth10.json')) };
} catch (e) {
auth10 = { authorizationCode: async () => Client.consoleQuestion('Please enter an Auth Code for Client 10: ') };
}
//Bot
//1
const client1 = new Client({
"defaultStatus": config.status,
"platform": config.platform,
"cachePresences": false,
"auth": auth1,
"partyConfig": {
"joinConfirmation": false,
"joinability": "OPEN",
"maxSize": 16,
"chatEnabled": true,
},
"debug": false
});
//2
const client2 = new Client({
"defaultStatus": config.status,
"platform": config.platform,
"cachePresences": false,
"auth": auth2,
"partyConfig": {
"joinConfirmation": false,
"joinability": "OPEN",
"maxSize": 16,
"chatEnabled": true,
},
"debug": false
});
//3
const client3 = new Client({
"defaultStatus": config.status,
"platform": config.platform,
"cachePresences": false,
"auth": auth3,
"partyConfig": {
"joinConfirmation": false,
"joinability": "OPEN",
"maxSize": 16,
"chatEnabled": true,
},
"debug": false
});
//4
const client4 = new Client({
"defaultStatus": config.status,
"platform": config.platform,
"cachePresences": false,
"auth": auth4,
"partyConfig": {
"joinConfirmation": false,
"joinability": "OPEN",
"maxSize": 16,
"chatEnabled": true,
},
"debug": false
});
//5
const client5 = new Client({
"defaultStatus": config.status,
"platform": config.platform,
"cachePresences": false,
"auth": auth5,
"partyConfig": {
"joinConfirmation": false,
"joinability": "OPEN",
"maxSize": 16,
"chatEnabled": true,
},
"debug": false
});
//6
const client6 = new Client({
"defaultStatus": config.status,
"platform": config.platform,
"cachePresences": false,
"auth": auth6,
"partyConfig": {
"joinConfirmation": false,
"joinability": "OPEN",
"maxSize": 16,
"chatEnabled": true,
},
"debug": false
});
//7
const client7 = new Client({
"defaultStatus": config.status,
"platform": config.platform,
"cachePresences": false,
"auth": auth7,
"partyConfig": {
"joinConfirmation": false,
"joinability": "OPEN",
"maxSize": 16,
"chatEnabled": true,
},
"debug": false
});
//8
const client8 = new Client({
"defaultStatus": config.status,
"platform": config.platform,
"cachePresences": false,
"auth": auth8,
"partyConfig": {
"joinConfirmation": false,
"joinability": "OPEN",
"maxSize": 16,
"chatEnabled": true,
},
"debug": false
});
//9
const client9 = new Client({
"defaultStatus": config.status,
"platform": config.platform,
"cachePresences": false,
"auth": auth9,
"partyConfig": {
"joinConfirmation": false,
"joinability": "OPEN",
"maxSize": 16,
"chatEnabled": true,
},
"debug": false
});
//10
const client10 = new Client({
"defaultStatus": config.status,
"platform": config.platform,
"cachePresences": false,
"auth": auth10,
"partyConfig": {
"joinConfirmation": false,
"joinability": "OPEN",
"maxSize": 16,
"chatEnabled": true,
},
"debug": false
});
//Events
//1
client1.on('deviceauth:created', (da) => writeFile('./auths/deviceAuth.json', JSON.stringify(da, null, 2)));
client1.on('party:member:message', handleCommand);
client1.on('friend:message', handleCommand);
//2
client2.on('deviceauth:created', (da) => writeFile('./auths/deviceAuth2.json', JSON.stringify(da, null, 2)));
client2.on('party:member:message', handleCommand);
client2.on('friend:message', handleCommand);
//3
client3.on('deviceauth:created', (da) => writeFile('./auths/deviceAuth3.json', JSON.stringify(da, null, 2)));
client3.on('party:member:message', handleCommand);
client3.on('friend:message', handleCommand);
//4
client4.on('deviceauth:created', (da) => writeFile('./auths/deviceAuth4.json', JSON.stringify(da, null, 2)));
client4.on('party:member:message', handleCommand);
client4.on('friend:message', handleCommand);
//5
client5.on('deviceauth:created', (da) => writeFile('./auths/deviceAuth5.json', JSON.stringify(da, null, 2)));
client5.on('party:member:message', handleCommand);
client5.on('friend:message', handleCommand);
//6
client6.on('deviceauth:created', (da) => writeFile('./auths/deviceAuth6.json', JSON.stringify(da, null, 2)));
client6.on('party:member:message', handleCommand);
client6.on('friend:message', handleCommand);
//7
client7.on('deviceauth:created', (da) => writeFile('./auths/deviceAuth7.json', JSON.stringify(da, null, 2)));
client7.on('party:member:message', handleCommand);
client7.on('friend:message', handleCommand);
//8
client8.on('deviceauth:created', (da) => writeFile('./auths/deviceAuth8.json', JSON.stringify(da, null, 2)));
client8.on('party:member:message', handleCommand);
client8.on('friend:message', handleCommand);
//9
client9.on('deviceauth:created', (da) => writeFile('./auths/deviceAuth9.json', JSON.stringify(da, null, 2)));
client9.on('party:member:message', handleCommand);
client9.on('friend:message', handleCommand);
//10
client10.on('deviceauth:created', (da) => writeFile('./auths/deviceAuth10.json', JSON.stringify(da, null, 2)));
client10.on('party:member:message', handleCommand);
client10.on('friend:message', handleCommand);
//Default Lodaut
//1
client1.setLoadout = () => {
client1.party.hideMembers(false);
client1.party.me.setReadiness(false);
client1.party.me.setOutfit(config.cid);
client1.party.me.setBackpack(config.bid);
client1.party.me.setPickaxe(config.pickaxeId);
client1.party.me.setLevel(config.level);
client1.party.me.setBanner(config.banner, config.bannerColor);
client1.party.me.clearEmote();
};
//2
client2.setLoadout = () => {
client2.party.hideMembers(false);
client2.party.me.setReadiness(false);
client2.party.me.setOutfit(config.cid);
client2.party.me.setBackpack(config.bid);
client2.party.me.setPickaxe(config.pickaxeId);
client2.party.me.setLevel(config.level);
client2.party.me.setBanner(config.banner, config.bannerColor);
client2.party.me.clearEmote();
};
//3
client3.setLoadout = () => {
client3.party.hideMembers(false);
client3.party.me.setReadiness(false);
client3.party.me.setOutfit(config.cid);
client3.party.me.setBackpack(config.bid);
client3.party.me.setPickaxe(config.pickaxeId);
client3.party.me.setLevel(config.level);
client3.party.me.setBanner(config.banner, config.bannerColor);
client3.party.me.clearEmote();
};
//4
client4.setLoadout = () => {
client4.party.hideMembers(false);
client4.party.me.setReadiness(false);
client4.party.me.setOutfit(config.cid);
client4.party.me.setBackpack(config.bid);
client4.party.me.setPickaxe(config.pickaxeId);
client4.party.me.setLevel(config.level);
client4.party.me.setBanner(config.banner, config.bannerColor);
client4.party.me.clearEmote();
};
//5
client5.setLoadout = () => {
client5.party.hideMembers(false);
client5.party.me.setReadiness(false);
client5.party.me.setOutfit(config.cid);
client5.party.me.setBackpack(config.bid);
client5.party.me.setPickaxe(config.pickaxeId);
client5.party.me.setLevel(config.level);
client5.party.me.setBanner(config.banner, config.bannerColor);
client5.party.me.clearEmote();
};
//6
client6.setLoadout = () => {
client6.party.hideMembers(false);
client6.party.me.setReadiness(false);
client6.party.me.setOutfit(config.cid);
client6.party.me.setBackpack(config.bid);
client6.party.me.setPickaxe(config.pickaxeId);
client6.party.me.setLevel(config.level);
client6.party.me.setBanner(config.banner, config.bannerColor);
client6.party.me.clearEmote();
};
//7
client7.setLoadout = () => {
client7.party.hideMembers(false);
client7.party.me.setReadiness(false);
client7.party.me.setOutfit(config.cid);
client7.party.me.setBackpack(config.bid);
client7.party.me.setPickaxe(config.pickaxeId);
client7.party.me.setLevel(config.level);
client7.party.me.setBanner(config.banner, config.bannerColor);
client7.party.me.clearEmote();
};
//8
client8.setLoadout = () => {
client8.party.hideMembers(false);
client8.party.me.setReadiness(false);
client8.party.me.setOutfit(config.cid);
client8.party.me.setBackpack(config.bid);
client8.party.me.setPickaxe(config.pickaxeId);
client8.party.me.setLevel(config.level);
client8.party.me.setBanner(config.banner, config.bannerColor);
client8.party.me.clearEmote();
};
//9
client9.setLoadout = () => {
client9.party.hideMembers(false);
client9.party.me.setReadiness(false);
client9.party.me.setOutfit(config.cid);
client9.party.me.setBackpack(config.bid);
client9.party.me.setPickaxe(config.pickaxeId);
client9.party.me.setLevel(config.level);
client9.party.me.setBanner(config.banner, config.bannerColor);
client9.party.me.clearEmote();
};
//10
client10.setLoadout = () => {
client10.party.hideMembers(false);
client10.party.me.setReadiness(false);
client10.party.me.setOutfit(config.cid);
client10.party.me.setBackpack(config.bid);
client10.party.me.setPickaxe(config.pickaxeId);
client10.party.me.setLevel(config.level);
client10.party.me.setBanner(config.banner, config.bannerColor);
client10.party.me.clearEmote();
};
//Friend and Party System
//1
//Friend Request
client1.on("friend:request", (req) => {
req.accept()
});
//Party System
client1.on('party:member:joined', () => {
m.reply(`Hello, to see my Command use !help`);
m.reply(`Also join my Discord for Updates and Status: https://discord.gg/DEDp2UQUx8`);
client1.setLoadout();
client1.party.setPrivacy(PrivacySetting.PRIVATE);
});
//Party Leave
client1.on('party:member:left', () => {
client1.party.setPrivacy(PrivacySetting.PUBLIC);
client1.setLoadout();
});
//2
//Friend Request
client2.on("friend:request", (req) => {
req.accept()
});
//Party System
client2.on('party:member:joined', () => {
m.reply(`Hello, to see my Command use !help`);
m.reply(`Also join my Discord for Updates and Status: https://discord.gg/DEDp2UQUx8`);
client2.setLoadout();
client2.party.setPrivacy(PrivacySetting.PRIVATE);
});
//Party Leave
client2.on('party:member:left', () => {
client2.party.setPrivacy(PrivacySetting.PUBLIC);
client2.setLoadout();
});
//3
//Friend Request
client3.on("friend:request", (req) => {
req.accept()
});
//Party System
client3.on('party:member:joined', () => {
m.reply(`Hello, to see my Command use !help`);
m.reply(`Also join my Discord for Updates and Status: https://discord.gg/DEDp2UQUx8`);
client3.setLoadout();
client3.party.setPrivacy(PrivacySetting.PRIVATE);
});
//Party Leave
client3.on('party:member:left', () => {
client3.party.setPrivacy(PrivacySetting.PUBLIC);
client3.setLoadout();
});
//4
//Friend Request
client4.on("friend:request", (req) => {
req.accept()
});
//Party System
client4.on('party:member:joined', () => {
m.reply(`Hello, to see my Command use !help`);
m.reply(`Also join my Discord for Updates and Status: https://discord.gg/DEDp2UQUx8`);
client4.setLoadout();
client4.party.setPrivacy(PrivacySetting.PRIVATE);
});
//Party Leave
client4.on('party:member:left', () => {
client4.party.setPrivacy(PrivacySetting.PUBLIC);
client4.setLoadout();
});
//5
//Friend Request
client5.on("friend:request", (req) => {
req.accept()
});
//Party System
client5.on('party:member:joined', () => {
m.reply(`Hello, to see my Command use !help`);
m.reply(`Also join my Discord for Updates and Status: https://discord.gg/DEDp2UQUx8`);
client5.setLoadout();
client5.party.setPrivacy(PrivacySetting.PRIVATE);
});
//Party Leave
client5.on('party:member:left', () => {
client5.party.setPrivacy(PrivacySetting.PUBLIC);
client5.setLoadout();
});
//6
//Friend Request
client6.on("friend:request", (req) => {
req.accept()
});
//Party System
client6.on('party:member:joined', () => {
m.reply(`Hello, to see my Command use !help`);
m.reply(`Also join my Discord for Updates and Status: https://discord.gg/DEDp2UQUx8`);
client6.setLoadout();
client6.party.setPrivacy(PrivacySetting.PRIVATE);
});
//Party Leave
client6.on('party:member:left', () => {
client6.party.setPrivacy(PrivacySetting.PUBLIC);
client6.setLoadout();
});
//7
//Friend Request
client7.on("friend:request", (req) => {
req.accept()
});
//Party System
client7.on('party:member:joined', () => {
m.reply(`Hello, to see my Command use !help`);
m.reply(`Also join my Discord for Updates and Status: https://discord.gg/DEDp2UQUx8`);
client7.setLoadout();
client7.party.setPrivacy(PrivacySetting.PRIVATE);
});
//Party Leave
client7.on('party:member:left', () => {
client7.party.setPrivacy(PrivacySetting.PUBLIC);
client7.setLoadout();
});
//8
//Friend Request
client8.on("friend:request", (req) => {
req.accept()
});
//Party System
client8.on('party:member:joined', () => {
m.reply(`Hello, to see my Command use !help`);
m.reply(`Also join my Discord for Updates and Status: https://discord.gg/DEDp2UQUx8`);
client8.setLoadout();
client8.party.setPrivacy(PrivacySetting.PRIVATE);
});
//Party Leave
client8.on('party:member:left', () => {
client8.party.setPrivacy(PrivacySetting.PUBLIC);
client8.setLoadout();
});
//9
//Friend Request
client9.on("friend:request", (req) => {
req.accept()
});
//Party System
client9.on('party:member:joined', () => {
m.reply(`Hello, to see my Command use !help`);
m.reply(`Also join my Discord for Updates and Status: https://discord.gg/DEDp2UQUx8`);
client9.setLoadout();
client9.party.setPrivacy(PrivacySetting.PRIVATE);
});
//Party Leave
client9.on('party:member:left', () => {
client9.party.setPrivacy(PrivacySetting.PUBLIC);
client9.setLoadout();
});
//10
//Friend Request
client10.on("friend:request", (req) => {
req.accept()
});
//Party System
client10.on('party:member:joined', () => {
m.reply(`Hello, to see my Command use !help`);
m.reply(`Also join my Discord for Updates and Status: https://discord.gg/DEDp2UQUx8`);
client10.setLoadout();
client10.party.setPrivacy(PrivacySetting.PRIVATE);
});
//Party Leave
client10.on('party:member:left', () => {
client10.party.setPrivacy(PrivacySetting.PUBLIC);
client10.setLoadout();
});
//Login
//1
await client1.login();
client1.setLoadout();
console.log(`Logged in as ${client1.user.displayName}`);
//2
await client2.login();
client2.setLoadout();
console.log(`Logged in as ${client2.user.displayName}`);
//3
await client3.login();
client3.setLoadout();
console.log(`Logged in as ${client3.user.displayName}`);
//4
await client4.login();
client4.setLoadout();
console.log(`Logged in as ${client4.user.displayName}`);
//5
await client5.login();
client5.setLoadout();
console.log(`Logged in as ${client5.user.displayName}`);
//6
await client6.login();
client6.setLoadout();
console.log(`Logged in as ${client6.user.displayName}`);
//7
await client7.login();
client7.setLoadout();
console.log(`Logged in as ${client7.user.displayName}`);
//8
await client8.login();
client8.setLoadout();
console.log(`Logged in as ${client8.user.displayName}`);
//9
await client9.login();
client9.setLoadout();
console.log(`Logged in as ${client9.user.displayName}`);
//10
await client10.login();
client10.setLoadout();
console.log(`Logged in as ${client10.user.displayName}`);
})();