-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
918 lines (794 loc) · 48.3 KB
/
index.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
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
const Discord = require('discord.js')
const client = new Discord.Client({
intents: '14079',
disableMentions: 'everyone',
})
const db = require('quick.db')
const { readdirSync } = require('fs');
const CONFIG = require('./data/config.json')
client.login(CONFIG.TOKEN)
const { GIFS } = require('./data/config.json')
const { NSFW, MALWARE } = require('./data/links.json')
var VER = require('./package.json').version
client.on('ready', () => {
setInterval(() => {
client.user.setPresence({
status: 'dnd',
activities: [{
type: 'WATCHING',
name: `${client.guilds.cache.size} GUILDS | /info | V ${VER}`,
}]
});
// ------------------------------------
var DATAS = db.all()
DATAS.forEach(DATA => {
if (DATA.ID.startsWith('executer_')) {
db.delete(DATA.ID)
}
});
}, 60000);
console.log('--------------------------');
console.log(`CONNECTED TO : ${client.user.tag}`);
});
// --------------------------------------------
client.on('guildCreate', async guild => {
let JoinEmbed = new Discord.MessageEmbed()
.setDescription('**<:space:874678195843125278><:right:874690882417360986> A New Guild Has Been Submited**')
.setAuthor({ name: guild.name, iconURL: guild.iconURL({ dynamic: true }) })
.setColor('#0fe694')
client.channels.cache.get(CONFIG.JOIN).send({ embeds: [JoinEmbed] });
});
// --------------------------------------------
client.on('guildDelete', async guild => {
let LeftEmbed = new Discord.MessageEmbed()
.setDescription('**<:space:874678195843125278><:right:874690882417360986> A Guild Has Been Removed **')
.setAuthor({ name: guild.name, iconURL: guild.iconURL({ dynamic: true }) })
.setColor('#ff0000')
client.channels.cache.get(CONFIG.JOIN).send({ embeds: [LeftEmbed] });
});
// --------------------------------------------
client.commands = new Discord.Collection();
const commandFiles = readdirSync('./commands').filter(file => file.endsWith('.js'));
console.log('------------- LOADING COMMANDS -------------');
for (const file of commandFiles) {
const command = require(`./commands/${file}`);
client.commands.set(command.data.name, command);
console.log(command.data.name + ' LOADED');
}
// --------------------------------------------
client.on('interactionCreate', async interaction => {
if (!interaction.isCommand()) return;
const command = client.commands.get(interaction.commandName);
let logs = db.get(`acitonslogs_${interaction.guild.id}`)
if (!command) return;
try {
if (interaction.guild.members.cache.get(client.user.id).permissions.has("ADMINISTRATOR")) {
if (logs) {
await command.execute(interaction, client);
client.channels.cache.get(CONFIG.ACTION).send('```\n' + `${interaction.commandName} Triggerd In ${interaction.guild.name} | ${interaction.channel.name} By ${interaction.user.tag}` + '\n```')
} else if (command.data.name === 'actionlog') {
await command.execute(interaction, client);
client.channels.cache.get(CONFIG.ACTION).send('```\n' + `${interaction.commandName} Triggerd In ${interaction.guild.name} | ${interaction.channel.name} By ${interaction.user.tag}` + '\n```')
} else {
let setlog = new Discord.MessageEmbed()
.setColor('#f67975')
.setTitle(`<:ignore:923151545569267752> ${interaction.guild.name} Log Not Found`)
.setDescription('Please Use `/actionlog` For Setting Log')
return interaction.reply({ embeds: [setlog] });
}
} else {
let missingperm = new Discord.MessageEmbed()
.setColor('#f67975')
.setTitle(`<:ignore:923151545569267752> Missings Permission`)
.setDescription('Please Make Sure I Have `ADMINISTRATOR` Permission')
return interaction.reply({ embeds: [missingperm] });
}
} catch (error) {
console.error(error);
client.channels.cache.get(CONFIG.ERROR).send('```\n' + error + '\n```')
return interaction.reply({ content: `There was an error while executing this command!\nAsk Developers In : ${CONFIG.supportserver}`, ephemeral: true });
}
});
// -----------------------------------------
client.on("roleCreate", async role => {
const user = await role.guild.fetchAuditLogs({
type: 'ROLE_CREATE'
}).then(audit => audit.entries.first())
const entry = user.executor
let trustedusers = db.get(`trustedusers_${role.guild.id}`)
let extraowners = db.get(`extraowners_${role.guild.id}`)
let logs = db.get(`acitonslogs_${role.guild.id}`)
if (entry.id === role.guild.ownerId || entry.id === client.user.id) {
return;
}
if (extraowners && extraowners.find(find => find.user == entry.id)) {
let trustedac = new Discord.MessageEmbed()
.setColor('#85db61')
.setTitle(`<:check:923151545401479179> ${entry.tag} Created An Role But He/She Is In Extra Owner`)
return client.channels.cache.get(logs).send({ embeds: [trustedac] });
}
if (trustedusers && trustedusers.find(find => find.user == entry.id)) {
let trustedac = new Discord.MessageEmbed()
.setColor('#85db61')
.setTitle(`<:check:923151545401479179> ${entry.tag} Created An Role But He/She Is In Trusted Users`)
return client.channels.cache.get(logs).send({ embeds: [trustedac] });
}
let author = db.get(`executer_${role.guild.id}_${entry.id}_rolecreate`)
let limts = db.get(`rolecreatelimt_${role.guild.id}`)
if (limts === null && logs) {
let nolimit = new Discord.MessageEmbed()
.setColor('#f67975')
.setTitle(`<:ignore:923151545569267752> ${entry.tag} Created A Role But No Limit Found To Punish`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [nolimit] });
}
if (author >= limts && logs) {
db.delete(`executer_${role.guild.id}_${entry.id}_rolecreate`)
role.guild.members.ban(entry.id).then(a => {
let logsembed = new Discord.MessageEmbed()
.setColor('#00008b')
.setTitle(`<:perm:923904697423777792> ${entry.tag} Was Trying To Raid But Failed Miserabely [Breaking Roles Create Limits]`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
}).catch(e => {
let logsembed = new Discord.MessageEmbed()
.setColor('#f67975')
.setTitle(`<:perm:923904697423777792> ${entry.tag} Is Raiding But Failed To Ban Him/Her`)
.setDescription('** **\n```\n' + e + '\n```')
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
})
}
db.add(`executer_${role.guild.id}_${entry.id}_rolecreate`, 1)
if (logs) {
let logsembed = new Discord.MessageEmbed()
.setColor('RED')
.setTitle(`<:erorr:878139495764090880> ${entry.tag} Is Creating Role [${author || 0} /${limts || 0}]`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
}
});
// --------------------------------------------
client.on("roleDelete", async role => {
const user = await role.guild.fetchAuditLogs({
type: 'ROLE_DELETE'
}).then(audit => audit.entries.first())
const entry = user.executor
let trustedusers = db.get(`trustedusers_${role.guild.id}`)
let extraowners = db.get(`extraowners_${role.guild.id}`)
let logs = db.get(`acitonslogs_${role.guild.id}`)
if (entry.id === role.guild.ownerId || entry.id === client.user.id) {
return;
}
if (extraowners && extraowners.find(find => find.user == entry.id)) {
let trustedac = new Discord.MessageEmbed()
.setColor('#85db61')
.setTitle(`<:check:923151545401479179> ${entry.tag} Deleted An Role But He/She Is In Extra Owner`)
return client.channels.cache.get(logs).send({ embeds: [trustedac] });
}
if (trustedusers && trustedusers.find(find => find.user == entry.id)) {
let trustedac = new Discord.MessageEmbed()
.setColor('#85db61')
.setTitle(`<:check:923151545401479179> ${entry.tag} Deleted An Role But He/She Is In Trusted Users`)
return client.channels.cache.get(logs).send({ embeds: [trustedac] });
}
let author = db.get(`executer_${role.guild.id}_${entry.id}_roledelete`)
let limts = db.get(`roledeletelimt_${role.guild.id}`)
if (limts === null && logs) {
let nolimit = new Discord.MessageEmbed()
.setColor('#f67975')
.setTitle(`<:ignore:923151545569267752> ${entry.tag} Deleted A Role But No Limit Found To Punish`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [nolimit] });
}
if (author >= limts && logs) {
db.delete(`executer_${role.guild.id}_${entry.id}_roledelete`)
role.guild.members.ban(entry.id).then(a => {
let logsembed = new Discord.MessageEmbed()
.setColor('#00008b')
.setTitle(`<:perm:923904697423777792> ${entry.tag} Was Trying To Raid But Failed Miserabely [Breaking Roles Delete Limits]`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
}).catch(e => {
let logsembed = new Discord.MessageEmbed()
.setColor('#f67975')
.setTitle(`<:perm:923904697423777792> ${entry.tag} Is Raiding But Failed To Ban Him/Her`)
.setDescription('** **\n```\n' + e + '\n```')
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
})
}
db.add(`executer_${role.guild.id}_${entry.id}_roledelete`, 1)
if (logs) {
let logsembed = new Discord.MessageEmbed()
.setColor('RED')
.setTitle(`<:erorr:878139495764090880> ${entry.tag} Is Deleting Role [${author || 0} /${limts || 0}]`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
}
});
// --------------------------------------------
client.on("channelCreate", async channel => {
const user = await channel.guild.fetchAuditLogs({
type: 'CHANNEL_CREATE'
}).then(audit => audit.entries.first())
const entry = user.executor
let trustedusers = db.get(`trustedusers_${channel.guild.id}`)
let extraowners = db.get(`extraowners_${channel.guild.id}`)
let logs = db.get(`acitonslogs_${channel.guild.id}`)
if (entry.id === channel.guild.ownerId || entry.id === client.user.id) {
return;
}
if (extraowners && extraowners.find(find => find.user == entry.id)) {
let trustedac = new Discord.MessageEmbed()
.setColor('#85db61')
.setTitle(`<:check:923151545401479179> ${entry.tag} Created An Channel But He/She Is In Extra Owner`)
return client.channels.cache.get(logs).send({ embeds: [trustedac] });
}
if (trustedusers && trustedusers.find(find => find.user == entry.id)) {
let trustedac = new Discord.MessageEmbed()
.setColor('#85db61')
.setTitle(`<:check:923151545401479179> ${entry.tag} Created An Channel But He/She Is In Trusted Users`)
return client.channels.cache.get(logs).send({ embeds: [trustedac] });
}
let author = db.get(`executer_${channel.guild.id}_${entry.id}_channelcreate`)
let limts = db.get(`channelcreatelimts_${channel.guild.id}`)
if (limts === null && logs) {
let nolimit = new Discord.MessageEmbed()
.setColor('#f67975')
.setTitle(`<:ignore:923151545569267752> ${entry.tag} Created A Channel But No Limit Found To Punish`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [nolimit] });
}
if (author >= limts && logs) {
db.delete(`executer_${channel.guild.id}_${entry.id}_channelcreate`)
channel.guild.members.ban(entry.id).then(a => {
let logsembed = new Discord.MessageEmbed()
.setColor('#00008b')
.setTitle(`<:perm:923904697423777792> ${entry.tag} Was Trying To Raid But Failed Miserabely [Breaking Channel Create Limits]`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
}).catch(e => {
let logsembed = new Discord.MessageEmbed()
.setColor('#f67975')
.setTitle(`<:perm:923904697423777792> ${entry.tag} Is Raiding But Failed To Ban Him/Her`)
.setDescription('** **\n```\n' + e + '\n```')
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
})
}
db.add(`executer_${channel.guild.id}_${entry.id}_channelcreate`, 1)
if (logs) {
let logsembed = new Discord.MessageEmbed()
.setColor('RED')
.setTitle(`<:erorr:878139495764090880> ${entry.tag} Is Creating Channel [${author || 0} /${limts || 0}]`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
}
});
// --------------------------------------------
client.on("channelDelete", async channel => {
const user = await channel.guild.fetchAuditLogs({
type: 'CHANNEL_DELETE'
}).then(audit => audit.entries.first())
const entry = user.executor
let trustedusers = db.get(`trustedusers_${channel.guild.id}`)
let extraowners = db.get(`extraowners_${channel.guild.id}`)
let logs = db.get(`acitonslogs_${channel.guild.id}`)
if (entry.id === channel.guild.ownerId || entry.id === client.user.id) {
return;
}
if (extraowners && extraowners.find(find => find.user == entry.id)) {
let trustedac = new Discord.MessageEmbed()
.setColor('#85db61')
.setTitle(`<:check:923151545401479179> ${entry.tag} Deleted An Channel But He/She Is In Extra Owner`)
return client.channels.cache.get(logs).send({ embeds: [trustedac] });
}
if (trustedusers && trustedusers.find(find => find.user == entry.id)) {
let trustedac = new Discord.MessageEmbed()
.setColor('#85db61')
.setTitle(`<:check:923151545401479179> ${entry.tag} Deleted An Channel But He/She Is In Trusted Users`)
return client.channels.cache.get(logs).send({ embeds: [trustedac] });
}
let author = db.get(`executer_${channel.guild.id}_${entry.id}_channeldelete`)
let limts = db.get(`channeldeletelimts_${channel.guild.id}`)
if (limts === null && logs) {
let nolimit = new Discord.MessageEmbed()
.setColor('#f67975')
.setTitle(`<:ignore:923151545569267752> ${entry.tag} Deleted A Channel But No Limit Found To Punish`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [nolimit] });
}
if (author >= limts && logs) {
db.delete(`executer_${channel.guild.id}_${entry.id}_channeldelete`)
channel.guild.members.ban(entry.id).then(a => {
let logsembed = new Discord.MessageEmbed()
.setColor('#00008b')
.setTitle(`<:perm:923904697423777792> ${entry.tag} Was Trying To Raid But Failed Miserabely [Breaking Channel Delete Limits]`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
}).catch(e => {
let logsembed = new Discord.MessageEmbed()
.setColor('#f67975')
.setTitle(`<:perm:923904697423777792> ${entry.tag} Is Raiding But Failed To Ban Him/Her`)
.setDescription('** **\n```\n' + e + '\n```')
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
})
}
db.add(`executer_${channel.guild.id}_${entry.id}_channeldelete`, 1)
if (logs) {
let logsembed = new Discord.MessageEmbed()
.setColor('RED')
.setTitle(`<:erorr:878139495764090880> ${entry.tag} Is Deleting Channel [${author || 0} /${limts || 0}]`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
}
});
// --------------------------------------------
client.on("guildMemberRemove", async member => {
const entry1 = await member.guild
.fetchAuditLogs()
.then(audit => audit.entries.first());
if (entry1.action === "MEMBER_KICK") {
const entry2 = await member.guild
.fetchAuditLogs({
type: "MEMBER_KICK"
})
.then(audit => audit.entries.first());
const entry = entry2.executor;
let trustedusers = db.get(`trustedusers_${member.guild.id}`)
let extraowners = db.get(`extraowners_${member.guild.id}`)
let logs = db.get(`acitonslogs_${member.guild.id}`)
if (entry.id === member.guild.ownerId || entry.id === client.user.id) {
return;
}
if (extraowners && extraowners.find(find => find.user == entry.id)) {
let trustedac = new Discord.MessageEmbed()
.setColor('#85db61')
.setTitle(`<:check:923151545401479179> ${entry.tag} Kicked An Member But He/She Is In Extra Owner`)
return client.channels.cache.get(logs).send({ embeds: [trustedac] });
}
if (trustedusers && trustedusers.find(find => find.user == entry.id)) {
let trustedac = new Discord.MessageEmbed()
.setColor('#85db61')
.setTitle(`<:check:923151545401479179> ${entry.tag} Kicked An Member But He/She Is In Trusted Users`)
return client.channels.cache.get(logs).send({ embeds: [trustedac] });
}
let author = db.get(`executer_${member.guild.id}_${entry.id}_kicklimts`)
let limts = db.get(`kicklimts_${member.guild.id}`)
if (limts === null && logs) {
let nolimit = new Discord.MessageEmbed()
.setColor('#f67975')
.setTitle(`<:ignore:923151545569267752> ${entry.tag} Kicked An Member But No Limit Found To Punish`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [nolimit] });
}
if (author >= limts && logs) {
db.delete(`executer_${member.guild.id}_${entry.id}_kicklimts`)
member.guild.members.ban(entry.id).then(a => {
let logsembed = new Discord.MessageEmbed()
.setColor('#00008b')
.setTitle(`<:perm:923904697423777792> ${entry.tag} Was Trying To Raid But Failed Miserabely [Breaking Kick Limits]`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
}).catch(e => {
let logsembed = new Discord.MessageEmbed()
.setColor('#f67975')
.setTitle(`<:perm:923904697423777792> ${entry.tag} Is Raiding But Failed To Ban Him/Her`)
.setDescription('** **\n```\n' + e + '\n```')
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
})
}
db.add(`executer_${member.guild.id}_${entry.id}_kicklimts`, 1)
if (logs) {
let logsembed = new Discord.MessageEmbed()
.setColor('RED')
.setTitle(`<:erorr:878139495764090880> ${entry.tag} Is Kicking Memeber [${author || 0} /${limts || 0}]`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
}
}
})
// --------------------------------------------
client.on("guildMemberRemove", async member => {
const entry1 = await member.guild
.fetchAuditLogs()
.then(audit => audit.entries.first());
if (entry1.action === "MEMBER_BAN_ADD") {
const entry2 = await member.guild
.fetchAuditLogs({
type: "MEMBER_BAN_ADD"
})
.then(audit => audit.entries.first());
const entry = entry2.executor;
if (entry.id === member.guild.ownerId || entry.id === client.user.id) {
return;
}
let trustedusers = db.get(`trustedusers_${member.guild.id}`)
let extraowners = db.get(`extraowners_${member.guild.id}`)
let logs = db.get(`acitonslogs_${member.guild.id}`)
if (extraowners && extraowners.find(find => find.user == entry.id)) {
let trustedac = new Discord.MessageEmbed()
.setColor('#85db61')
.setTitle(`<:check:923151545401479179> ${entry.tag} Banned An Member But He/She Is In Extra Owner`)
return client.channels.cache.get(logs).send({ embeds: [trustedac] });
}
if (trustedusers && trustedusers.find(find => find.user == entry.id)) {
let trustedac = new Discord.MessageEmbed()
.setColor('#85db61')
.setTitle(`<:check:923151545401479179> ${entry.tag} Banned An Member But He/She Is In Trusted Users`)
return client.channels.cache.get(logs).send({ embeds: [trustedac] });
}
let author = db.get(`executer_${member.guild.id}_${entry.id}_banlimts`)
let limts = db.get(`banlimts_${member.guild.id}`)
if (limts === null && logs) {
let nolimit = new Discord.MessageEmbed()
.setColor('#f67975')
.setTitle(`<:ignore:923151545569267752> ${entry.tag} Banned A Member But No Limit Found To Punish`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [nolimit] });
}
if (author >= limts && logs) {
db.delete(`executer_${member.guild.id}_${entry.id}_banlimts`)
member.guild.members.ban(entry.id).then(a => {
let logsembed = new Discord.MessageEmbed()
.setColor('#00008b')
.setTitle(`<:perm:923904697423777792> ${entry.tag} Was Trying To Raid But Failed Miserabely [Breaking Ban Limits]`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
}).catch(e => {
let logsembed = new Discord.MessageEmbed()
.setColor('#f67975')
.setTitle(`<:perm:923904697423777792> ${entry.tag} Is Raiding But Failed To Ban Him/Her`)
.setDescription('** **\n```\n' + e + '\n```')
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
})
}
db.add(`executer_${member.guild.id}_${entry.id}_banlimts`, 1)
if (logs) {
let logsembed = new Discord.MessageEmbed()
.setColor('RED')
.setTitle(`<:erorr:878139495764090880> ${entry.tag} Is Banning Member [${author || 0} /${limts || 0}]`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
}
}
})
// --------------------------------------------
client.on("guildMemberAdd", async member => {
const entry1 = await member.guild
.fetchAuditLogs()
.then(audit => audit.entries.first());
if (entry1.action === "BOT_ADD") {
const entry2 = await member.guild
.fetchAuditLogs({
type: "BOT_ADD"
})
.then(audit => audit.entries.first());
const entry = entry2.executor;
let trustedusers = db.get(`trustedusers_${member.guild.id}`)
let extraowners = db.get(`extraowners_${member.guild.id}`)
let logs = db.get(`acitonslogs_${member.guild.id}`)
let value = db.get(`addbot_${member.guild.id}`)
if (value === "true" && logs) {
if (entry.id === member.guild.ownerId || entry.id === client.user.id) {
return;
}
if (extraowners && extraowners.find(find => find.user == entry.id)) {
let trustedac = new Discord.MessageEmbed()
.setColor('#85db61')
.setTitle(`<:check:923151545401479179> ${entry.tag} Added A Bot But He/She Is In Extra Owner`)
.setDescription(`<:bell_emoji:914129896958205982> **Details :**
<:space:874678195843125278><:right:874690882417360986> User : <@${entry.id}>` + '`[' + entry.tag + ']`' + `
<:space:874678195843125278><:right:874690882417360986> Bot : <@${member.user.id}>` + '`[' + member.user.tag + ']`' + `
`)
return client.channels.cache.get(logs).send({ embeds: [trustedac] });
}
if (trustedusers && trustedusers.find(find => find.user == entry.id)) {
let trustedac = new Discord.MessageEmbed()
.setColor('#85db61')
.setTitle(`<:check:923151545401479179> ${entry.tag} Added A Bot But He/She Is In Trusted Users`)
.setDescription(`<:bell_emoji:914129896958205982> **Details :**
<:space:874678195843125278><:right:874690882417360986> User : <@${entry.id}>` + '`[' + entry.tag + ']`' + `
<:space:874678195843125278><:right:874690882417360986> Bot : <@${member.user.id}>` + '`[' + member.user.tag + ']`' + `
`)
return client.channels.cache.get(logs).send({ embeds: [trustedac] });
}
member.guild.members.ban(member.id)
member.guild.members.ban(entry.id).then(a => {
let logsembed = new Discord.MessageEmbed()
.setColor('#00008b')
.setTitle(`<:perm:923904697423777792> ${entry.tag} Was Trying To Raid But Failed Miserabely [Added A Bot]`)
.setDescription(`<:bell_emoji:914129896958205982> **Details :**
<:space:874678195843125278><:right:874690882417360986> User : <@${entry.id}>` + '`[' + entry.tag + ']`' + `
<:space:874678195843125278><:right:874690882417360986> Bot : <@${member.user.id}>` + '`[' + member.user.tag + ']`' + `
`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
}).catch(e => {
let logsembed = new Discord.MessageEmbed()
.setColor('#f67975')
.setTitle(`<:perm:923904697423777792> ${entry.tag} Is Adding Bot But Failed To Ban Him/Her`)
.setDescription('** **\n```\n' + e + '\n```')
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
})
}
}
})
// --------------------------------------------
client.on("messageCreate", async msg => {
if (msg.guild) {
var antievery = db.get(`every_${msg.guild.id}`)
var antiinv = db.get(`inv_${msg.guild.id}`)
var antiweb = db.get(`weblink_${msg.guild.id}`)
var antimaleware = db.get(`malware_${msg.guild.id}`)
var antiNSFW = db.get(`antinsfw_${msg.guild.id}`)
let logs = db.get(`acitonslogs_${msg.guild.id}`)
let trustedusers = db.get(`trustedusers_${msg.guild.id}`)
let extraowners = db.get(`extraowners_${msg.guild.id}`)
if (logs) {
if (antievery === 'true') {
if (msg.content.includes('@here') || msg.content.includes('@everyone')) {
if (trustedusers && trustedusers.find(find => find.user == msg.author.id) || extraowners && extraowners.find(find => find.user == msg.author.id) || msg.author.id === msg.guild.ownerId || msg.author.id === client.user.id) {
return;
}
msg.delete()
let logsembed = new Discord.MessageEmbed()
.setColor('#00008b')
.setTitle(`<:perm:923904697423777792> ${msg.author.tag} Pinged Everyone/Here | Successfully Deleted`)
.setDescription(`<:bell_emoji:914129896958205982> **Details :**
<:space:874678195843125278><:right:874690882417360986> User : <@${msg.author.id}>` + '`[' + msg.author.tag + ']`' + `
<:space:874678195843125278><:right:874690882417360986> Channel : <#${msg.channel.id}>` + '`[' + msg.channel.name + ']`' + `
<:space:874678195843125278><:right:874690882417360986> Content : \n${msg.content}
`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
};
}
if (antiinv === 'true') {
if (msg.content.includes('https://discord.gg') || msg.content.includes('http://discord.gg') || msg.content.includes('https://discord.com/invite/')) {
if (trustedusers && trustedusers.find(find => find.user == msg.author.id) || extraowners && extraowners.find(find => find.user == msg.author.id) || msg.author.id === msg.guild.ownerId || msg.author.id === client.user.id) {
return;
}
msg.delete()
let logsembed = new Discord.MessageEmbed()
.setColor('#00008b')
.setTitle(`<:perm:923904697423777792> ${msg.author.tag} Shared Discord Invite | Successfully Deleted`)
.setDescription(`<:bell_emoji:914129896958205982> **Details :**
<:space:874678195843125278><:right:874690882417360986> User : <@${msg.author.id}>` + '`[' + msg.author.tag + ']`' + `
<:space:874678195843125278><:right:874690882417360986> Channel : <#${msg.channel.id}>` + '`[' + msg.channel.name + ']`' + `
<:space:874678195843125278><:right:874690882417360986> Content : \n${msg.content}
`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
};
}
if (antiweb === 'true') {
if (msg.content.includes('www.') || msg.content.includes('http') || msg.content.includes('.com') || msg.content.includes('.ir') || msg.content.includes('.me') || msg.content.includes('.tv')) {
if (trustedusers && trustedusers.find(find => find.user == msg.author.id) || extraowners && extraowners.find(find => find.user == msg.author.id) || msg.author.id === msg.guild.ownerId || msg.author.id === client.user.id) {
return;
}
if (msg.content.endsWith('.gif') || msg.content.endsWith('.png') || msg.content.endsWith('.jpg') || msg.content.endsWith('.jpeg') || msg.content.endsWith('.webp')) {
return;
}
msg.delete()
let logsembed = new Discord.MessageEmbed()
.setColor('#00008b')
.setTitle(`<:perm:923904697423777792> ${msg.author.tag} Shared Website Link | Successfully Deleted`)
.setDescription(`<:bell_emoji:914129896958205982> **Details :**
<:space:874678195843125278><:right:874690882417360986> User : <@${msg.author.id}>` + '`[' + msg.author.tag + ']`' + `
<:space:874678195843125278><:right:874690882417360986> Channel : <#${msg.channel.id}>` + '`[' + msg.channel.name + ']`' + `
<:space:874678195843125278><:right:874690882417360986> Content : \n${msg.content}
`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
};
}
if (antiNSFW === 'true') {
if (msg.content) {
NSFW.forEach(link => {
if (msg.content.includes(link)) {
if (trustedusers && trustedusers.find(find => find.user == msg.author.id) || extraowners && extraowners.find(find => find.user == msg.author.id) || msg.author.id === msg.guild.ownerId || msg.author.id === client.user.id) {
return;
}
msg.delete()
let logsembed = new Discord.MessageEmbed()
.setColor('#00008b')
.setTitle(`<:perm:923904697423777792> ${msg.author.tag} Shared NSFW Website | Successfully Deleted`)
.setDescription(`<:bell_emoji:914129896958205982> **Details :**
<:space:874678195843125278><:right:874690882417360986> User : <@${msg.author.id}>` + '`[' + msg.author.tag + ']`' + `
<:space:874678195843125278><:right:874690882417360986> Channel : <#${msg.channel.id}>` + '`[' + msg.channel.name + ']`' + `
<:space:874678195843125278><:right:874690882417360986> Content : \n${msg.content}
`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
}
});
}
}
if (antimaleware === 'true') {
MALWARE.forEach(link => {
if (msg.content.includes(link)) {
if (trustedusers && trustedusers.find(find => find.user == msg.author.id) || extraowners && extraowners.find(find => find.user == msg.author.id) || msg.author.id === msg.guild.ownerId || msg.author.id === client.user.id) {
return;
}
msg.delete()
let logsembed = new Discord.MessageEmbed()
.setColor('#00008b')
.setTitle(`<:perm:923904697423777792> ${msg.author.tag} Shared MALWARE Website | Successfully Deleted`)
.setDescription(`<:bell_emoji:914129896958205982> **Details :**
<:space:874678195843125278><:right:874690882417360986> User : <@${msg.author.id}>` + '`[' + msg.author.tag + ']`' + `
<:space:874678195843125278><:right:874690882417360986> Channel : <#${msg.channel.id}>` + '`[' + msg.channel.name + ']`' + `
<:space:874678195843125278><:right:874690882417360986> Content : \n${msg.content}
`)
.setImage(GIFS[Math.floor(GIFS.length * Math.random())])
return client.channels.cache.get(logs).send({ embeds: [logsembed] });
}
});
}
}
}
})
// --------------------------------------------
client.on("guildMemberAdd", async member => {
let logs = db.get(`acitonslogs_${member.guild.id}`)
let noprfiltter = db.get(`noprofilefilter_${member.guild.id}`)
let agefilter1 = db.get(`agefilter1_${member.guild.id}`)
let agefilter2 = db.get(`agefilter2_${member.guild.id}`)
let agefilter3 = db.get(`agefilter3_${member.guild.id}`)
let agefilter4 = db.get(`agefilter4_${member.guild.id}`)
let agefilter5 = db.get(`agefilter5_${member.guild.id}`)
let agefilter6 = db.get(`agefilter6_${member.guild.id}`)
let agefilter7 = db.get(`agefilter7_${member.guild.id}`)
var AGE = member.user.createdTimestamp
var ONEDAY = 86400000
var TWODAY = 172800000
var THREEDAY = 259200000
var FOURDAY = 345600000
var FIVEDAY = 432000000
var SIXDAY = 518400000
var SEVENDAY = 604800000
if (logs) {
if (noprfiltter === 'true') {
if (member.user.avatar === null) {
let joinav = new Discord.MessageEmbed()
.setColor('#00008b')
.setTitle(`<:perm:923904697423777792> ${member.user.tag} Has Been Kicked`)
member.send(`You Has Been Kicked From ${member.guild.name} | Join Gate (No Avatar Filter)`).then(a => {
member.kick()
joinav.setDescription(`<:bell_emoji:914129896958205982> **Details :**\n<:space:874678195843125278><:right:874690882417360986> Member : <@${member.user.id}> **[${member.user.id}]**\n<:space:874678195843125278><:right:874690882417360986> Reasson : No Avatar Filter\n<:space:874678195843125278><:right:874690882417360986> Member Direct Messaged ? : <:check:923151545401479179>\n`)
return client.channels.cache.get(logs).send({ embeds: [joinav] });
}).catch(e => {
member.kick()
joinav.setDescription(`<:bell_emoji:914129896958205982> **Details :**\n<:space:874678195843125278><:right:874690882417360986> Member : <@${member.user.id}> **[${member.user.id}]**\n<:space:874678195843125278><:right:874690882417360986> Reasson : No Avatar Filter\n<:space:874678195843125278><:right:874690882417360986> Member Direct Messaged ? : <:ignore:923151545569267752>\n`)
return client.channels.cache.get(logs).send({ embeds: [joinav] });
})
}
}
// -----------------------------------
if (agefilter1 === 'true') {
if (AGE < ONEDAY) {
let joingate = new Discord.MessageEmbed()
.setColor('#00008b')
.setTitle(`<:perm:923904697423777792> ${member.user.tag} Has Been Kicked`)
member.send(`You Has Been Kicked From ${member.guild.name} | Join Gate (Account Age Filter 1 Day)`).then(a => {
member.kick()
joingate.setDescription(`<:bell_emoji:914129896958205982> **Details :**\n<:space:874678195843125278><:right:874690882417360986> Member : <@${member.user.id}> **[${member.user.id}]**\n<:space:874678195843125278><:right:874690882417360986> Reasson : Account Age Filter 1 Day\n<:space:874678195843125278><:right:874690882417360986> Member Direct Messaged ? : <:check:923151545401479179>\n`)
return client.channels.cache.get(logs).send({ embeds: [joingate] });
}).catch(e => {
member.kick()
joingate.setDescription(`<:bell_emoji:914129896958205982> **Details :**\n<:space:874678195843125278><:right:874690882417360986> Member : <@${member.user.id}> **[${member.user.id}]**\n<:space:874678195843125278><:right:874690882417360986> Reasson : Account Age Filter 1 Day\n<:space:874678195843125278><:right:874690882417360986> Member Direct Messaged ? : <:ignore:923151545569267752>\n`)
return client.channels.cache.get(logs).send({ embeds: [joingate] });
})
}
}
if (agefilter2 === 'true') {
if (AGE < TWODAY) {
let joingate = new Discord.MessageEmbed()
.setColor('#00008b')
.setTitle(`<:perm:923904697423777792> ${member.user.tag} Has Been Kicked`)
member.send(`You Has Been Kicked From ${member.guild.name} | Join Gate (Account Age Filter 1 Day)`).then(a => {
member.kick()
joingate.setDescription(`<:bell_emoji:914129896958205982> **Details :**\n<:space:874678195843125278><:right:874690882417360986> Member : <@${member.user.id}> **[${member.user.id}]**\n<:space:874678195843125278><:right:874690882417360986> Reasson : Account Age Filter 2 Day\n<:space:874678195843125278><:right:874690882417360986> Member Direct Messaged ? : <:check:923151545401479179>\n`)
return client.channels.cache.get(logs).send({ embeds: [joingate] });
}).catch(e => {
member.kick()
joingate.setDescription(`<:bell_emoji:914129896958205982> **Details :**\n<:space:874678195843125278><:right:874690882417360986> Member : <@${member.user.id}> **[${member.user.id}]**\n<:space:874678195843125278><:right:874690882417360986> Reasson : Account Age Filter 2 Day\n<:space:874678195843125278><:right:874690882417360986> Member Direct Messaged ? : <:ignore:923151545569267752>\n`)
return client.channels.cache.get(logs).send({ embeds: [joingate] });
})
}
}
if (agefilter3 === 'true') {
if (AGE < THREEDAY) {
let joingate = new Discord.MessageEmbed()
.setColor('#00008b')
.setTitle(`<:perm:923904697423777792> ${member.user.tag} Has Been Kicked`)
member.send(`You Has Been Kicked From ${member.guild.name} | Join Gate (Account Age Filter 1 Day)`).then(a => {
member.kick()
joingate.setDescription(`<:bell_emoji:914129896958205982> **Details :**\n<:space:874678195843125278><:right:874690882417360986> Member : <@${member.user.id}> **[${member.user.id}]**\n<:space:874678195843125278><:right:874690882417360986> Reasson : Account Age Filter 3 Day\n<:space:874678195843125278><:right:874690882417360986> Member Direct Messaged ? : <:check:923151545401479179>\n`)
return client.channels.cache.get(logs).send({ embeds: [joingate] });
}).catch(e => {
member.kick()
joingate.setDescription(`<:bell_emoji:914129896958205982> **Details :**\n<:space:874678195843125278><:right:874690882417360986> Member : <@${member.user.id}> **[${member.user.id}]**\n<:space:874678195843125278><:right:874690882417360986> Reasson : Account Age Filter 3 Day\n<:space:874678195843125278><:right:874690882417360986> Member Direct Messaged ? : <:ignore:923151545569267752>\n`)
return client.channels.cache.get(logs).send({ embeds: [joingate] });
})
}
}
if (agefilter4 === 'true') {
if (AGE < FOURDAY) {
let joingate = new Discord.MessageEmbed()
.setColor('#00008b')
.setTitle(`<:perm:923904697423777792> ${member.user.tag} Has Been Kicked`)
member.send(`You Has Been Kicked From ${member.guild.name} | Join Gate (Account Age Filter 1 Day)`).then(a => {
member.kick()
joingate.setDescription(`<:bell_emoji:914129896958205982> **Details :**\n<:space:874678195843125278><:right:874690882417360986> Member : <@${member.user.id}> **[${member.user.id}]**\n<:space:874678195843125278><:right:874690882417360986> Reasson : Account Age Filter 4 Day\n<:space:874678195843125278><:right:874690882417360986> Member Direct Messaged ? : <:check:923151545401479179>\n`)
return client.channels.cache.get(logs).send({ embeds: [joingate] });
}).catch(e => {
member.kick()
joingate.setDescription(`<:bell_emoji:914129896958205982> **Details :**\n<:space:874678195843125278><:right:874690882417360986> Member : <@${member.user.id}> **[${member.user.id}]**\n<:space:874678195843125278><:right:874690882417360986> Reasson : Account Age Filter 4 Day\n<:space:874678195843125278><:right:874690882417360986> Member Direct Messaged ? : <:ignore:923151545569267752>\n`)
return client.channels.cache.get(logs).send({ embeds: [joingate] });
})
}
}
if (agefilter5 === 'true') {
if (AGE < FIVEDAY) {
let joingate = new Discord.MessageEmbed()
.setColor('#00008b')
.setTitle(`<:perm:923904697423777792> ${member.user.tag} Has Been Kicked`)
member.send(`You Has Been Kicked From ${member.guild.name} | Join Gate (Account Age Filter 1 Day)`).then(a => {
member.kick()
joingate.setDescription(`<:bell_emoji:914129896958205982> **Details :**\n<:space:874678195843125278><:right:874690882417360986> Member : <@${member.user.id}> **[${member.user.id}]**\n<:space:874678195843125278><:right:874690882417360986> Reasson : Account Age Filter 5 Day\n<:space:874678195843125278><:right:874690882417360986> Member Direct Messaged ? : <:check:923151545401479179>\n`)
return client.channels.cache.get(logs).send({ embeds: [joingate] });
}).catch(e => {
member.kick()
joingate.setDescription(`<:bell_emoji:914129896958205982> **Details :**\n<:space:874678195843125278><:right:874690882417360986> Member : <@${member.user.id}> **[${member.user.id}]**\n<:space:874678195843125278><:right:874690882417360986> Reasson : Account Age Filter 5 Day\n<:space:874678195843125278><:right:874690882417360986> Member Direct Messaged ? : <:ignore:923151545569267752>\n`)
return client.channels.cache.get(logs).send({ embeds: [joingate] });
})
}
}
if (agefilter6 === 'true') {
if (AGE < SIXDAY) {
let joingate = new Discord.MessageEmbed()
.setColor('#00008b')
.setTitle(`<:perm:923904697423777792> ${member.user.tag} Has Been Kicked`)
member.send(`You Has Been Kicked From ${member.guild.name} | Join Gate (Account Age Filter 1 Day)`).then(a => {
member.kick()
joingate.setDescription(`<:bell_emoji:914129896958205982> **Details :**\n<:space:874678195843125278><:right:874690882417360986> Member : <@${member.user.id}> **[${member.user.id}]**\n<:space:874678195843125278><:right:874690882417360986> Reasson : Account Age Filter 6 Day\n<:space:874678195843125278><:right:874690882417360986> Member Direct Messaged ? : <:check:923151545401479179>\n`)
return client.channels.cache.get(logs).send({ embeds: [joingate] });
}).catch(e => {
member.kick()
joingate.setDescription(`<:bell_emoji:914129896958205982> **Details :**\n<:space:874678195843125278><:right:874690882417360986> Member : <@${member.user.id}> **[${member.user.id}]**\n<:space:874678195843125278><:right:874690882417360986> Reasson : Account Age Filter 6 Day\n<:space:874678195843125278><:right:874690882417360986> Member Direct Messaged ? : <:ignore:923151545569267752>\n`)
return client.channels.cache.get(logs).send({ embeds: [joingate] });
})
}
}
if (agefilter7 === 'true') {
if (AGE < SEVENDAY) {
let joingate = new Discord.MessageEmbed()
.setColor('#00008b')
.setTitle(`<:perm:923904697423777792> ${member.user.tag} Has Been Kicked`)
member.send(`You Has Been Kicked From ${member.guild.name} | Join Gate (Account Age Filter 1 Day)`).then(a => {
member.kick()
joingate.setDescription(`<:bell_emoji:914129896958205982> **Details :**\n<:space:874678195843125278><:right:874690882417360986> Member : <@${member.user.id}> **[${member.user.id}]**\n<:space:874678195843125278><:right:874690882417360986> Reasson : Account Age Filter 7 Day\n<:space:874678195843125278><:right:874690882417360986> Member Direct Messaged ? : <:check:923151545401479179>\n`)
return client.channels.cache.get(logs).send({ embeds: [joingate] });
}).catch(e => {
member.kick()
joingate.setDescription(`<:bell_emoji:914129896958205982> **Details :**\n<:space:874678195843125278><:right:874690882417360986> Member : <@${member.user.id}> **[${member.user.id}]**\n<:space:874678195843125278><:right:874690882417360986> Reasson : Account Age Filter 7 Day\n<:space:874678195843125278><:right:874690882417360986> Member Direct Messaged ? : <:ignore:923151545569267752>\n`)
return client.channels.cache.get(logs).send({ embeds: [joingate] });
})
}
}
}
})
// --------------------------------------------
process.on('unhandledRejection', err => {
var errembed = new Discord.MessageEmbed()
.setTitle(':warning: New Error')
.setColor('YELLOW')
.addFields(
{ name: ':pushpin: Type: ', value: `\`\`\`${err.name + "".split("", 150).join("") || "N/A"}\`\`\`` },
{
name: ':page_with_curl: Reason: ',
value: `\`\`\`${err.message + "".split("", 150).join("") || "N/A"}\`\`\``
},
)
.setTimestamp()
client.channels.cache.get(CONFIG.ERROR).send({ embeds: [errembed] })
});