forked from PlagueCreator/Bot-V1.0.4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fortnite.py
1617 lines (1426 loc) · 71.5 KB
/
fortnite.py
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
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
"""
“Commons Clause” License Condition v1.0
Copyright Oli 2019
The Software is provided to you by the Licensor under the
License, as defined below, subject to the following condition.
Without limiting other conditions in the License, the grant
of rights under the License will not include, and the License
does not grant to you, the right to Sell the Software.
For purposes of the foregoing, “Sell” means practicing any or
all of the rights granted to you under the License to provide
to third parties, for a fee or other consideration (including
without limitation fees for hosting or consulting/ support
services related to the Software), a product or service whose
value derives, entirely or substantially, from the functionality
of the Software. Any license notice or attribution required by
the License must also include this Commons Clause License
Condition notice.
Software:
License: Apache 2.0
"""
class color:
PURPLE = '\033[95m'
CYAN = '\033[96m'
DARKCYAN = '\033[36m'
BLUE = '\033[94m'
GREEN = '\033[92m'
YELLOW = '\033[93m'
RED = '\033[91m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
END = '\033[0m'
try:
import fortnitepy
from fortnitepy.errors import *
import BenBotAsync
import asyncio
import time as delay
import datetime
import json
import aiohttp
import time
import logging
import functools
import sys
import os
import random
from colorama import init
init(autoreset=True)
from colorama import Fore, Back, Style
except ModuleNotFoundError:
print(Fore.RED + f'[FORTNITEPY] [N/A] [ERROR] Failed to import 1 or more modules, run "INSTALL PACKAGES.bat".')
exit()
print(f' ')
print(color.CYAN + f' ██████╗ ██╗ ██╗ ██████╗ ██████╗ ████████╗')
print(color.CYAN + f' ██╔══██╗╚██╗ ██╔╝ ██╔══██╗██╔═══██╗╚══██╔══╝')
print(color.CYAN + f' ██████╔╝ ╚████╔╝█████╗██████╔╝██║ ██║ ██║ ')
print(color.CYAN + f' ██╔═══╝ ╚██╔╝ ╚════╝██╔══██╗██║ ██║ ██║ ')
print(color.CYAN + f' ██║ ██║ ██████╔╝╚██████╔╝ ██║ ')
print(color.CYAN + f' ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ')
print(f' ')
def debugOn():
logger = logging.getLogger('fortnitepy.xmpp')
logger.setLevel(level=logging.DEBUG)
handler = logging.StreamHandler(sys.stdout)
handler.setFormatter(logging.Formatter('%(asctime)s:%(levelname)s:%(name)s: %(message)s'))
logger.addHandler(handler)
def getTime():
time = datetime.datetime.now().strftime('%H:%M:%S')
return time
with open('config.json') as f:
print(f' [PYBOT] [{getTime()}] Loading config.')
data = json.load(f)
print(f' [PYBOT] [{getTime()}] Config loaded.')
debug = 'False'
if debug == 'True':
print(f' [PYBOT] [{getTime()}] Debug logging is on.')
debugOn()
else:
print(f' [PYBOT] [{getTime()}] Debug logging is off.')
def get_device_auth_details():
if os.path.isfile('auths.json'):
with open('auths.json', 'r') as fp:
return json.load(fp)
return {}
def store_device_auth_details(email, details):
existing = get_device_auth_details()
existing[email] = details
with open('auths.json', 'w') as fp:
json.dump(existing, fp)
device_auth_details = get_device_auth_details().get(data['email'], {})
client = fortnitepy.Client(
auth=fortnitepy.AdvancedAuth(
email=data['email'],
password=data['password'],
prompt_authorization_code=True,
delete_existing_device_auths=True,
**device_auth_details
),
status=data['status'],
platform=fortnitepy.Platform(data['platform'])
)
@client.event
async def event_device_auth_generate(details, email):
store_device_auth_details(email, details)
@client.event
async def event_ready():
print(Fore.GREEN + ' [PYBOT] [' + getTime() + '] Client ready as {0.user.display_name}.'.format(client))
member = client.party.me
await member.edit_and_keep(
functools.partial(
fortnitepy.ClientPartyMember.set_outfit,
asset=data['cid']
),
functools.partial(
fortnitepy.ClientPartyMember.set_backpack,
asset=data['bid']
),
functools.partial(
fortnitepy.ClientPartyMember.set_pickaxe,
asset=data['pid']
),
functools.partial(
fortnitepy.ClientPartyMember.set_banner,
icon=data['banner'],
color=data['banner_color'],
season_level=data['level']
),
functools.partial(
fortnitepy.ClientPartyMember.set_battlepass_info,
has_purchased=True,
level=data['bp_tier']
)
)
@client.event
async def event_party_invite(invite):
if data['joinoninvite'].lower() == 'true':
if invite.sender.display_name not in data['BlockList']:
try:
await invite.accept()
print(Fore.GREEN + f' [PYBOT] [{getTime()}] Accepted party invite from {invite.sender.display_name}')
except Exception as e:
pass
elif invite.sender.display_name in data['BlockList']:
print(Fore.GREEN + f' [PYBOT] [{getTime()}] Never accepted party invite from' + Fore.RED + f' {invite.sender.display_name}')
if data['joinoninvite'].lower() == 'false':
if invite.sender.display_name in data['FullAccess']:
await invite.accept()
print(Fore.GREEN + f' [PYBOT] [{getTime()}] Accepted party invite from {invite.sender.display_name}')
else:
print(Fore.GREEN + f' [PYBOT] [{getTime()}] Never accepted party invite from {invite.sender.display_name}')
await invite.sender.send(f"I can't join you right now.")
@client.event
async def event_friend_request(request):
if data['friendaccept'].lower() == 'true':
if request.display_name not in data['BlockList']:
try:
await request.accept()
print(f" [PYBOT] [{getTime()}] Accepted friend request from: {request.display_name}")
except Exception as e:
pass
elif request.display_name in data['BlockList']:
print(f" [PYBOT] [{getTime()}] Never Accepted friend reqest from: " + Fore.RED + f"{request.display_name}")
if data['friendaccept'].lower() == 'false':
if request.display_name in data['FullAccess']:
try:
await request.accept()
print(f" [PYBOT] [{getTime()}] Accepted friend request from: {request.display_name}")
except Exception as e:
pass
else:
print(f" [PYBOT] [{getTime()}] Never accepted friend request from: {request.display_name}")
@client.event
async def event_party_member_join(member):
if client.user.display_name != member.display_name:
print(f" [PYBOT] [{getTime()}] {member.display_name} has joined the lobby.")
@client.event
async def event_friend_message(message):
args = message.content.split()
split = args[1:]
joinedArguments = " ".join(split)
print(' [PYBOT] [' + getTime() + '] {0.author.display_name}: {0.content}'.format(message))
if "!skin" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
try:
cosmetic = await BenBotAsync.get_cosmetic(
lang="en",
searchLang="en",
matchMethod="contains",
name=joinedArguments,
backendType="AthenaCharacter"
)
await client.party.me.set_outfit(asset=cosmetic.id)
await message.reply('Skin set to ' + f'{cosmetic.name}')
except BenBotAsync.exceptions.NotFound:
await message.reply(f'Could not find a skin named: {joinedArguments}')
if "!backpack" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
if len(args) == 1:
await client.party.me.set_backpack(asset='none')
await message.reply('Backpack set to None')
else:
try:
cosmetic = await BenBotAsync.get_cosmetic(
lang="en",
searchLang="en",
matchMethod="contains",
name=joinedArguments,
backendType="AthenaBackpack"
)
await client.party.me.set_backpack(asset=cosmetic.id)
await message.reply('Backpack set to ' + f'{cosmetic.name}')
except BenBotAsync.exceptions.NotFound:
await message.reply(f'Could not find a backpack named: {joinedArguments}')
if "!random" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
if len(args) == 1:
skins = await BenBotAsync.get_cosmetics(
lang="en",
searchLang="en",
backendType="AthenaCharacter"
)
skin = random.choice(skins)
backpacks = await BenBotAsync.get_cosmetics(
lang="en",
searchLang="en",
backendType="AthenaBackpack"
)
backpack = random.choice(backpacks)
pickaxes = await BenBotAsync.get_cosmetics(
lang="en",
searchLang="en",
backendType="AthenaPickaxe"
)
pickaxe = random.choice(pickaxes)
await client.party.me.set_outfit(
asset=skin.id
)
await client.party.me.set_backpack(
asset=backpack.id
)
await client.party.me.set_pickaxe(
asset=pickaxe.id
)
await message.reply(f'Loadout set to: {skin.name}, {backpack.name}, {pickaxe.name}')
if len(args) == 2:
if args[1].lower() == 'skin':
skins = await BenBotAsync.get_cosmetics(
lang="en",
searchLang="en",
backendType="AthenaCharacter"
)
skin = random.choice(skins)
await client.party.me.set_outfit(
asset=skin.id
)
await message.reply(f"Skin set to: {skin.name}")
if args[1].lower() == 'backpack':
backpacks = await BenBotAsync.get_cosmetics(
lang="en",
searchLang="en",
backendType="AthenaBackpack"
)
backpack = random.choice(backpacks)
await client.party.me.set_backpack(
asset=backpack.id
)
await message.reply(f"Backpack set to: {backpack.name}")
if args[1].lower() == 'emote':
emotes = await BenBotAsync.get_cosmetics(
lang="en",
searchLang="en",
backendType="AthenaDance"
)
emote = random.choice(emotes)
await client.party.me.set_emote(
asset=emote.id
)
await message.reply(f"Emote set to: {emote.name}")
if args[1].lower() == 'pickaxe':
pickaxes = await BenBotAsync.get_cosmetics(
lang="en",
searchLang="en",
backendType="AthenaPickaxe"
)
pickaxe = random.choice(pickaxes)
await client.party.me.set_pickaxe(
asset=pickaxe.id
)
await message.reply(f"Pickaxe set to: {pickaxe.name}")
if "!cid" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
try:
cosmetic = await BenBotAsync.get_cosmetic(
lang="en",
searchLang="en",
matchMethod="contains",
name=joinedArguments,
backendType="AthenaCharacter"
)
await message.reply(f'The CID for {cosmetic.name} is: ' + f'{cosmetic.id}')
print(f" [PYBOT] [{getTime()}] CID for {cosmetic.name}: {cosmetic.id}")
except BenBotAsync.exceptions.NotFound:
await message.reply(f'Could not find a cid for the skin: {joinedArguments}')
if "!bid" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
try:
cosmetic = await BenBotAsync.get_cosmetic(
lang="en",
searchLang="en",
matchMethod="contains",
name=joinedArguments,
backendType="AthenaBackpack"
)
await message.reply(f'The BID for {cosmetic.name} is: ' + f'{cosmetic.id}')
print(f" [PYBOT] [{getTime()}] BID for {cosmetic.name}: {cosmetic.id}")
except BenBotAsync.exceptions.NotFound:
await message.reply(f'Could not find a bid for the backpack: {joinedArguments}')
if "!eid" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
try:
cosmetic = await BenBotAsync.get_cosmetic(
lang="en",
searchLang="en",
matchMethod="contains",
name=joinedArguments,
backendType="AthenaDance"
)
await message.reply(f'The EID for {cosmetic.name} is: ' + f'{cosmetic.id}')
print(f" [PYBOT] [{getTime()}] EID for {cosmetic.name}: {cosmetic.id}")
except BenBotAsync.exceptions.NotFound:
await message.reply(f'Could not find a eid for the emote: {joinedArguments}')
if "!pid" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
try:
cosmetic = await BenBotAsync.get_cosmetic(
lang="en",
searchLang="en",
matchMethod="contains",
name=joinedArguments,
backendType="AthenaPickaxe"
)
await message.reply(f'The PID for {cosmetic.name} is: ' + f'{cosmetic.id}')
print(f" [PYBOT] [{getTime()}] PID for {cosmetic.name}: {cosmetic.id}")
except BenBotAsync.exceptions.NotFound:
await message.reply(f'Could not find a pid for the pickaxe: {joinedArguments}')
if "!emote" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
try:
cosmetic = await BenBotAsync.get_cosmetic(
lang="en",
searchLang="en",
matchMethod="contains",
name=joinedArguments,
backendType="AthenaDance"
)
await client.party.me.clear_emote()
await client.party.me.set_emote(asset=cosmetic.id)
await message.reply('Emote set to ' + f'{cosmetic.name}')
except BenBotAsync.exceptions.NotFound:
await message.reply(f'Could not find an emote named: {joinedArguments}')
if "!pickaxe" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
try:
cosmetic = await BenBotAsync.get_cosmetic(
lang="en",
searchLang="en",
matchMethod="contains",
name=joinedArguments,
backendType="AthenaPickaxe"
)
await client.party.me.set_pickaxe(asset=cosmetic.id)
await message.reply('Pickaxe set to ' + f'{cosmetic.name}')
except BenBotAsync.exceptions.NotFound:
await message.reply(f'Could not find a pickaxe named: {joinedArguments}')
if "!point" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
await client.party.me.clear_emote()
if len(args) == 1:
await client.party.me.set_emote(asset="/Game/Athena/Items/Cosmetics/Dances/EID_IceKing.EID_IceKing")
await message.reply('Doing emote: Point It Out')
else:
if len(args) == 2:
if args[1].lower() == 'random':
pickaxes = await BenBotAsync.get_cosmetics(
lang="en",
searchLang="en",
backendType="AthenaPickaxe"
)
pickaxe = random.choice(pickaxes)
await client.party.me.set_pickaxe(
asset=pickaxe.id
)
await client.party.me.clear_emote()
await client.party.me.set_emote(asset="/Game/Athena/Items/Cosmetics/Dances/EID_IceKing.EID_IceKing")
await message.reply(f"Pointing with: {pickaxe.name}")
else:
try:
cosmetic = await BenBotAsync.get_cosmetic(
lang="en",
searchLang="en",
matchMethod="contains",
name=joinedArguments,
backendType="AthenaPickaxe"
)
await client.party.me.set_pickaxe(asset=cosmetic.id)
await client.party.me.clear_emote()
await client.party.me.set_emote(asset="/Game/Athena/Items/Cosmetics/Dances/EID_IceKing.EID_IceKing")
await message.reply('Pointing with: ' + f'{cosmetic.name}')
except BenBotAsync.exceptions.NotFound:
await message.reply(f'Could not find a pickaxe named: {joinedArguments}')
if "!pet" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
try:
cosmetic = await BenBotAsync.get_cosmetic(
lang="en",
searchLang="en",
matchMethod="contains",
name=joinedArguments,
backendType="AthenaPet"
)
await client.party.me.set_pet(asset=cosmetic.id)
await message.reply('Pet set to ' + f'{cosmetic.name}')
except BenBotAsync.exceptions.NotFound:
await message.reply(f'Could not find a pet named: {joinedArguments}')
if "!emoji" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
try:
cosmetic = await BenBotAsync.get_cosmetic(
lang="en",
searchLang="en",
matchMethod="contains",
name=joinedArguments,
backendType="AthenaEmoji"
)
await client.party.me.set_emoji(asset=cosmetic.id)
await message.reply('Emoji set to ' + f'{cosmetic.name}')
except BenBotAsync.exceptions.NotFound:
await message.reply(f'Could not find an emoji named: {joinedArguments}')
if "!purpleskull" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
try:
variants = client.party.me.create_variants(
clothing_color=1
)
await client.party.me.set_outfit(
asset='CID_030_Athena_Commando_M_Halloween',
variants=variants
)
await message.reply('Skin set to Purple Skull Trooper!')
print(f" [PYBOT] [{getTime()}] Client's Skin set to Purple Skull Trooper")
except Exception as e:
pass
if "!pinkghoul" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
try:
variants = client.party.me.create_variants(
material=3
)
await client.party.me.set_outfit(
asset='CID_029_Athena_Commando_F_Halloween',
variants=variants
)
await message.reply('Skin set to Pink Ghoul Trooper!')
print(f" [PYBOT] [{getTime()}] Client's Skin set to Pink Ghoul Trooper")
except Exception as e:
pass
if "!shortGhosthenchman" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
try:
variants = client.party.me.create_variants(
material=3
)
await client.party.me.set_outfit(
asset='cid_779_athena_commando_m_henchmangoodshorts',
variants=variants
)
await message.reply('Skin set to ghost henchman!')
print(f" [PYBOT] [{getTime()}] Client's Skin set to Ghost henchman")
except Exception as e:
pass
if "!shortshadowhenchman" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
try:
variants = client.party.me.create_variants(
material=3
)
await client.party.me.set_outfit(
asset='cid_780_athena_commando_m_henchmanbadshorts',
variants=variants
)
await message.reply('Skin set to Shadow henchman!')
print(f" [PYBOT] [{getTime()}] Client's Skin set to Shadow henchman")
except Exception as e:
pass
if "!goldenpeely" in args[0].lower():
await client.party.me.set_outfit(
asset='CID_701_Athena_Commando_M_BananaAgent',
variants=client.party.me.create_variants(
progressive=4
),
enlightenment=(2, 350)
)
await message.reply(f'Skin set to Golden Peely')
if "!peelyshadow" in args[0].lower():
await client.party.me.set_outfit(
asset='CID_701_Athena_Commando_M_BananaAgent',
variants=client.party.me.create_variants(
progressive=3
),
enlightenment=(2, 350)
)
await message.reply(f'Skin set to shadow Peely')
if "!peelyghost" in args[0].lower():
await client.party.me.set_outfit(
asset='CID_701_Athena_Commando_M_BananaAgent',
variants=client.party.me.create_variants(
progressive=2
),
enlightenment=(2, 350)
)
await message.reply(f'Skin set to ghost Peely')
if "!goldenmidas" in args[0].lower():
await client.party.me.set_outfit(
asset='CID_694_Athena_Commando_M_Catburglar',
variants=client.party.me.create_variants(
progressive=4
),
enlightenment=(2, 350)
)
await message.reply(f'Skin set to Golden Peely')
if "!midasshadow" in args[0].lower():
await client.party.me.set_outfit(
asset='CID_694_Athena_Commando_M_Catburglar',
variants=client.party.me.create_variants(
progressive=3
),
enlightenment=(2, 350)
)
await message.reply(f'Skin set to shadow midas')
if "!midasghost" in args[0].lower():
await client.party.me.set_outfit(
asset='CID_694_Athena_Commando_M_Catburglar',
variants=client.party.me.create_variants(
progressive=2
),
enlightenment=(2, 350)
)
await message.reply(f'Skin set to ghost Peely')
if "!goldenbrutus" in args[0].lower():
await client.party.me.set_outfit(
asset='CID_692_athena_commando_m_henchmantough',
variants=client.party.me.create_variants(
progressive=4
),
enlightenment=(2, 350)
)
await message.reply(f'Skin set to golden brutus')
if "!brutusshadow" in args[0].lower():
await client.party.me.set_outfit(
asset='CID_692_athena_commando_m_henchmantough',
variants=client.party.me.create_variants(
progressive=3
),
enlightenment=(2, 350)
)
await message.reply(f'Skin set to shadow brutus')
if "!brutusghost" in args[0].lower():
await client.party.me.set_outfit(
asset='CID_692_athena_commando_m_henchmantough',
variants=client.party.me.create_variants(
progressive=2
),
enlightenment=(2, 350)
)
await message.reply(f'Skin set to ghost brutus')
if "!goldenskye" in args[0].lower():
await client.party.me.set_outfit(
asset='CID_690_athena_commando_f_photographer',
variants=client.party.me.create_variants(
progressive=4
),
enlightenment=(2, 350)
)
await message.reply(f'Skin set to golden skye')
if "!skyeshadow" in args[0].lower():
await client.party.me.set_outfit(
asset='CID_690_athena_commando_f_photographer',
variants=client.party.me.create_variants(
progressive=3
),
enlightenment=(2, 350)
)
await message.reply(f'Skin set to shadow skye')
if "!skyeghost" in args[0].lower():
await client.party.me.set_outfit(
asset='CID_690_athena_commando_f_photographer',
variants=client.party.me.create_variants(
progressive=2
),
enlightenment=(2, 350)
)
await message.reply(f'Skin set to ghost skye')
if "!goldenbuffcat" in args[0].lower():
await client.party.me.set_outfit(
asset='CID_693_athena_commando_m_buffcat',
variants=client.party.me.create_variants(
progressive=4
),
enlightenment=(2, 350)
)
await message.reply(f'Skin set to golden Mewscles')
if "!smallcatghost" in args[0].lower():
await client.party.me.set_outfit(
asset='cid_776_athena_commando_m_professorpup',
variants=client.party.me.create_variants(
progressive=2
),
enlightenment=(2, 350)
)
await message.reply(f'skin is the baby')
if "!smallcatshadow" in args[0].lower():
await client.party.me.set_outfit(
asset='cid_776_athena_commando_m_professorpup',
variants=client.party.me.create_variants(
progressive=3
),
enlightenment=(2, 350)
)
await message.reply(f'Skin baby')
if "!buffcatghost" in args[0].lower():
await client.party.me.set_outfit(
asset='CID_693_athena_commando_m_buffcat',
variants=client.party.me.create_variants(
progressive=2
),
enlightenment=(2, 350)
)
await message.reply(f'Skin set to Ghost Mewscles')
if "!buffcatshadow" in args[0].lower():
await client.party.me.set_outfit(
asset='CID_693_athena_commando_m_buffcat',
variants=client.party.me.create_variants(
progressive=3
),
enlightenment=(2, 350)
)
await message.reply(f'Skin set to shadow Mewscles')
if "!aquaman" in args[0].lower():
await client.party.me.set_outfit(
asset='cid_772_athena_commando_m_sandcastle',
variants=client.party.me.create_variants(
progressive=1
),
enlightenment=(2, 350)
)
await message.reply(f'Skin set to Aquaman')
if "!aquamanwithnoshirt" in args[0].lower():
await client.party.me.set_outfit(
asset='CID_772_athena_commando_m_sandcastle',
variants=client.party.me.create_variants(
progressive=2
),
enlightenment=(2, 350)
)
await message.reply(f'Skin set to Aquaman')
if "!brainiacghoul" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
try:
variants = client.party.me.create_variants(
material=2
)
await client.party.me.set_outfit(
asset='CID_029_Athena_Commando_F_Halloween',
variants=variants
)
await message.reply('Skin set to Brainiac Ghoul Trooper!')
print(f" [PYBOT] [{getTime()}] Client's Skin set to Brainiac Ghoul Trooper")
except Exception as e:
pass
if "!purpleportal" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
variants = client.party.me.create_variants(
item='AthenaBackpack',
particle_config='Particle',
particle=1
)
await client.party.me.set_backpack(
asset='BID_105_GhostPortal',
variants=variants
)
await message.reply('Backpack set to Purple Ghost Portal!')
print(f" [PYBOT] [{getTime()}] Client's Backpack set to Purple Ghost Portal")
if "!banner" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
if len(args) == 1:
await message.reply('You need to specify which banner, color & level you want to set the banner as.')
if len(args) == 2:
await client.party.me.set_banner(icon=args[1], color=data['banner_color'], season_level=data['level'])
if len(args) == 3:
await client.party.me.set_banner(icon=args[1], color=args[2], season_level=data['level'])
if len(args) == 4:
await client.party.me.set_banner(icon=args[1], color=args[2], season_level=args[3])
await message.reply(f'Banner set to; {args[1]} {args[2]} {args[3]}')
print(f" [PYBOT] [{getTime()}] Banner set to; {args[1]} {args[2]} {args[3]}")
if "CID_" in args[0]:
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
await client.party.me.set_outfit(
asset=args[0]
)
await message.reply(f'Skin set to {args[0]}')
print(f' [PYBOT] [{getTime()}] Skin set to ' + args[0])
if "!variants" in args[0]:
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
args3 = int(args[3])
if 'CID' in args[1]:
variants = client.party.me.create_variants(**{args[2]: args3})
await client.party.me.set_outfit(
asset=args[1],
variants=variants
)
elif 'BID' in args[1]:
variants = client.party.me.create_variants(item='AthenaBackpack', **{args[2]: args3})
await client.party.me.set_backpack(
asset=args[1],
variants=variants
)
elif 'PICKAXE_ID' in args[1]:
variants = client.party.me.create_variants(item='AthenaPickaxe', **{args[2]: args3})
await client.party.me.set_pickaxe(
asset=args[1],
variants=variants
)
await message.reply(f'Set variants of {args[1]} to {args[2]} {args[3]}.')
print(f' [PYBOT] [{getTime()}] Set variants of {args[1]} to {args[2]} {args[3]}.')
if "!checkeredrenegade" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
variants = client.party.me.create_variants(
material=2
)
await client.party.me.set_outfit(
asset='CID_028_Athena_Commando_F',
variants=variants
)
await message.reply('Skin set to Checkered Renegade!')
print(f" [PYBOT] [{getTime()}] Client's Skin set to Checkered Renegade")
if "!mintyelf" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
variants = client.party.me.create_variants(
material=2
)
await client.party.me.set_outfit(
asset='CID_051_Athena_Commando_M_HolidayElf',
variants=variants
)
await message.reply('Skin set to Minty Elf!')
print(f" [PYBOT] [{getTime()}] Client's Skin set to Minty Elf")
if "!hologram" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
variants = client.party.me.create_variants(
material=2
)
await client.party.me.set_outfit(
asset='CID_VIP_Athena_Commando_M_GalileoGondola_SG',
variants=variants
)
await message.reply('Skin set to hologram!')
print(f" [PYBOT] [{getTime()}] Client's Skin set to hologram")
if "!ghost" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
variants = client.party.me.create_variants(
material=2
)
await client.party.me.set_outfit(
asset='CID_NPC_Athena_Commando_M_HenchmanGood',
variants=variants
)
await message.reply('Skin set to ghost henchman!')
print(f" [PYBOT] [{getTime()}] Client's Skin set to ghost henchman")
if "!shadow" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
variants = client.party.me.create_variants(
material=2
)
await client.party.me.set_outfit(
asset='CID_NPC_Athena_Commando_M_Henchmanbad',
variants=variants
)
await message.reply('Skin set to shadow henchman!')
print(f" [PYBOT] [{getTime()}] Client's Skin set to shadow henchman")
if "!oil" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
variants = client.party.me.create_variants(
material=2
)
await client.party.me.set_outfit(
asset='CID_NPC_Athena_Commando_M_tacticalfishermanoil',
variants=variants
)
await message.reply('Skin set to dirty henchman!')
print(f" [PYBOT] [{getTime()}] Client's Skin set to dirty henchman")
if "!arctic" in args[0].lower():
if message.author.display_name in data['BlockList']:
await message.reply("You don't have access to this command!")
else:
variants = client.party.me.create_variants(
material=2
)
await client.party.me.set_outfit(
asset='CID_NPC_Athena_Commando_M_paddedarmorarctic',
variants=variants
)