-
Notifications
You must be signed in to change notification settings - Fork 97
/
DarkMan.js
7489 lines (7113 loc) · 174 KB
/
DarkMan.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
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
// 20 token dane
//
const Discord = require("discord.js");
const Canvas = require("canvas");
const fs = require("fs");
const cmd = require("node-cmd");
const config = require("./config.json");
const prefix = config.prefix;
const client = new Discord.Client();
const client2 = new Discord.Client();
const client3 = new Discord.Client();
const client4 = new Discord.Client();
const client5 = new Discord.Client();
const client6 = new Discord.Client();
const client7 = new Discord.Client();
const client8 = new Discord.Client();
const client9 = new Discord.Client();
const client10 = new Discord.Client();
const client11 = new Discord.Client();
const client12 = new Discord.Client();
const client13 = new Discord.Client();
const client14 = new Discord.Client();
const client15 = new Discord.Client();
const client16 = new Discord.Client();
const client17 = new Discord.Client();
const client18 = new Discord.Client();
const client19 = new Discord.Client();
const client20 = new Discord.Client();
const client21 = new Discord.Client();
const client22 = new Discord.Client();
const client23 = new Discord.Client();
const client24 = new Discord.Client();
const client25 = new Discord.Client();
const client26 = new Discord.Client();
const client27 = new Discord.Client();
const client28 = new Discord.Client();
const client29 = new Discord.Client();
const client30 = new Discord.Client();
const client31 = new Discord.Client();
const client32 = new Discord.Client();
const client33 = new Discord.Client();
const client34 = new Discord.Client();
const client35 = new Discord.Client();
const client36 = new Discord.Client();
const client37 = new Discord.Client();
const client38 = new Discord.Client();
const client39 = new Discord.Client();
const client40 = new Discord.Client();
const client41 = new Discord.Client();
const client42 = new Discord.Client();
const client43 = new Discord.Client();
const client44 = new Discord.Client();
const client45 = new Discord.Client();
const client46 = new Discord.Client();
const client47 = new Discord.Client();
const client48 = new Discord.Client();
const client49 = new Discord.Client();
const client50 = new Discord.Client();
const client51 = new Discord.Client();
const client52 = new Discord.Client();
const client53 = new Discord.Client();
const client54 = new Discord.Client();
const client55 = new Discord.Client();
const client56 = new Discord.Client();
const client57 = new Discord.Client();
const client58 = new Discord.Client();
const client59 = new Discord.Client();
const client60 = new Discord.Client();
const client61 = new Discord.Client();
const client62 = new Discord.Client();
const client63 = new Discord.Client();
const client64 = new Discord.Client();
const client65 = new Discord.Client();
const client66 = new Discord.Client();
const client67 = new Discord.Client();
const client68 = new Discord.Client();
const client69 = new Discord.Client();
const client70 = new Discord.Client();
const client71 = new Discord.Client();
const client72 = new Discord.Client();
const client73 = new Discord.Client();
const client74 = new Discord.Client();
const client75 = new Discord.Client();
const client76 = new Discord.Client();
const client77 = new Discord.Client();
const client78 = new Discord.Client();
const client79 = new Discord.Client();
const client80 = new Discord.Client();
const client81 = new Discord.Client();
const client82 = new Discord.Client();
const client83 = new Discord.Client();
const client84 = new Discord.Client();
const client85 = new Discord.Client();
const client86 = new Discord.Client();
const client87 = new Discord.Client();
const client88 = new Discord.Client();
const client89 = new Discord.Client();
const client90 = new Discord.Client();
const client91 = new Discord.Client();
const client92 = new Discord.Client();
const client93 = new Discord.Client();
const client94 = new Discord.Client();
const client95 = new Discord.Client();
const client96 = new Discord.Client();
const client97 = new Discord.Client();
const client98 = new Discord.Client();
const client99 = new Discord.Client();
const client100 = new Discord.Client();
const help = `**
كۆماندهكان:
بۆ زیاد كردنی ڕیاكشن
!react <Channel ID> <Message ID> <Emoji>
بۆ هێنانه ڤۆیسی ههموو بۆتهكان
**`;
client6.on("message", message => {
if (message.author.bot) return;
let prefix = "!"
let command = message.content.split(" ")[0];
command = command.slice(prefix.length);
let args = message.content.split(" ").slice(1);
// +say
if (command === "say") {
if (!message.channel.guild)
return message.channel
.send("ببورە ئەم ئەمرە تەنها بۆ سێرفەرە")
.then(m => m.delete(5000));
if (!message.member.hasPermission("ADMINISTRATOR"))
return message.channel.send("ببورە ئەم دەسەڵاتەت نیە ADMINISTRATOR");
message.delete();
message.channel.sendMessage(args.join(" "));
}
if (command == "embed") {
if (!message.channel.guild)
return message.channel
.send("ببورە ئەم ئەمرە تەنها بۆ سێرفەرە")
.then(m => m.delete(5000));
if (!message.member.hasPermission("MANAGE_MESSAGES"))
return message.channel.send("ببورە ئەم دەسەڵاتەت نیە MANAGE_MESSAGES");
let say = new Discord.RichEmbed()
.setDescription(args.join(" "))
.setColor(0x23b2d6);
message.channel.sendEmbed(say);
message.delete();
}
});
const err = `** \`\`\` [ERORR] : لازم تسوي رتبة بـ اسم \`\`\`
\`\` Role.Kahrbaa \`\` **`;
// ======= [ settings JSON ] ======== //
const dinfo = JSON.parse(fs.readFileSync("./data.json", "UTF8"));
client.on("message", async msg => {
if (!msg.guild) return;
if (msg.author.bot) return;
if (!dinfo)
dinfo = {
owner: config.kahrbaaid,
serverid: "NONE",
channelid: "NONE",
timespam: "NONE",
timestop: "NONE"
};
if (msg.content.startsWith(config.prefix + "setownerID")) {
if (msg.channel.type == "dm")
return msg.reply("** لا تستيطع استخدام الامر علي الخاص .. **");
if (!dinfo.owner.includes(msg.author.id)) return;
let args = msg.content
.split(" ")
.slice(1)
.join(" ");
if (!args) return msg.channel.send("**قم بوضع ايدي **");
if (args.length > 18 || args.length <= 17) {
return msg.channel.send("** تـأكد من ايدي **");
}
if (isNaN(args)) return msg.channel.send("**__الارقام فقط__!**");
dinfo.owner = args;
await msg
.reply(`** __ تم وضع ايدي جديد لصاحب التوكانات __ \`${args}\`**`)
.then(m => m.delete(5000));
fs.writeFile("./data.json", JSON.stringify(dinfo), function(a) {
if (a) throw a;
});
await cmd.run("refresh");
}
if (msg.content.startsWith(config.prefix + "setserverID")) {
if (msg.channel.type == "dm")
// جمــيع الحقوق محفوظة لدي "Kahrbaa"
return msg.reply("** لا تستيطع استخدام الامر علي الخاص .. **");
if (!dinfo.owner.includes(msg.author.id)) return;
let args = msg.content
.split(" ")
.slice(1)
.join(" ");
if (!args) return msg.channel.send("**قم بوضع ايدي **");
if (args.length > 18 || args.length <= 17) {
return msg.channel.send("** تـأكد من ايدي **");
}
if (isNaN(args)) return msg.channel.send("**__الارقام فقط__!**"); // جمــيع الحقوق محفوظة لدي "Kahrbaa"
dinfo.serverid = args;
await msg
.reply(`** __ تم وضع ايدي جديد لسيرفر الاسبام __ \`${args}\`**`)
.then(m => m.delete(5000));
fs.writeFile("./data.json", JSON.stringify(dinfo), function(a) {
if (a) throw a;
});
}
if (msg.content.startsWith(config.prefix + "setchannelID")) {
if (msg.channel.type == "dm")
return msg.reply("** لا تستيطع استخدام الامر علي الخاص .. **");
if (!dinfo.owner.includes(msg.author.id)) return;
let args = msg.content
.split(" ")
.slice(1)
.join(" ");
if (!args) return msg.channel.send("**قم بوضع ايدي **");
if (args.length > 18 || args.length <= 17) {
return msg.channel.send("** تـأكد من ايدي **");
}
if (isNaN(args)) return msg.channel.send("**__الارقام فقط__!**");
dinfo.channelid = args;
await msg
.reply(`** __ تم وضع ايدي جديد لروم الاسبام __ \`${args}\`**`)
.then(m => m.delete(5000));
fs.writeFile("./data.json", JSON.stringify(dinfo), function(a) {
if (a) throw a;
});
}
if (msg.content.startsWith(config.prefix + "settimeSpam")) {
// جمــيع الحقوق محفوظة لدي "Kahrbaa"
if (msg.channel.type == "dm")
return msg.reply("** لا تستيطع استخدام الامر علي الخاص .. **");
if (!dinfo.owner.includes(msg.author.id)) return;
let args = msg.content
.split(" ")
.slice(1)
.join(" ");
if (!args) return msg.channel.send("**قم بوضع وقت الاسبام بـ الثواني **");
if (isNaN(args)) return msg.channel.send("**__الارقام فقط__!**"); // جمــيع الحقوق محفوظة لدي "Kahrbaa"
dinfo.timespam = args;
await msg
.reply(`** __ تم اضافة مدة ارسال الاسبام ب الثواني __ \`${args}\`**`)
.then(m => m.delete(5000));
fs.writeFile("./data.json", JSON.stringify(dinfo), function(a) {
if (a) throw a;
});
}
if (msg.content.startsWith(config.prefix + "settimeStop")) {
// جمــيع الحقوق محفوظة لدي "Kahrbaa"
if (msg.channel.type == "dm")
return msg.reply("** لا تستيطع استخدام الامر علي الخاص .. **");
if (!dinfo.owner.includes(msg.author.id)) return;
let args = msg.content
.split(" ")
.slice(1)
.join(" ");
if (!args)
return msg.channel.send(
"** قم بوضع وقت توقف البوت بعد بداء الاسبام بـ الساعات **"
);
if (isNaN(args)) return msg.channel.send("**__الارقام فقط__!**"); // جمــيع الحقوق محفوظة لدي "Kahrbaa"
dinfo.timestop = args;
await msg
.reply(`** __ تم اضافة مدة توقف الاسبام بـ الساعات __ \`${args}\`**`)
.then(m => m.delete(5000));
fs.writeFile("./data.json", JSON.stringify(dinfo), function(a) {
if (a) throw a;
});
}
}); // جمــيع الحقوق محفوظة لدي "Kahrbaa"
client.on("message", async message => {
if (message.content === prefix + "reset") {
if (!dinfo.owner.includes(message.author.id)) return; // جمــيع الحقوق محفوظة لدي "Kahrbaa"
dinfo.serverid = "NONE";
dinfo.channelid = "NONE";
dinfo.timespam = "NONE"; // جمــيع الحقوق محفوظة لدي "Kahrbaa"
dinfo.timestop = "NONE";
message.channel.send(`**⚠️ restsettings , <@${dinfo.owner}>**`);
fs.writeFile("./data.json", JSON.stringify(dinfo), function(a) {
if (a) throw a;
});
await cmd.run("refresh"); // جمــيع الحقوق محفوظة لدي "Kahrbaa"
}
});
// ======= [ settings JSON - END ] ======== //
// جمــيع الحقوق محفوظة لدي "Kahrbaa"
// ======= [ Reload JSON ] ======== //
client.on("message", async message => {
if (message.author.id !== dinfo.owner) return;
if (message.content === config.prefix + "reload") {
await cmd.run("refresh");
await message.channel.send("Done,");
}
});
// ======= [ Reload JSON - END ] ======== //
// جمــيع الحقوق محفوظة لدي "Kahrbaa"
// ======= [ Console LOG ] ======== //
client.on("ready", () => {
console.log(`[Kahrbaa] : الحساب رقم واحد يعمل`);
console.log(`Hi ${client.user.tag} , This Code by : Kahrbaa `);
console.log(`i Have [ " ${client.guilds.size} " ]`);
}); // جمــيع الحقوق محفوظة لدي "Kahrbaa"
client2.on("ready", () => {
console.log(`[Kahrbaa] : الحساب رقم اثنين يعمل `);
console.log(`Hi ${client2.user.tag} , This Code by : Kahrbaa `);
console.log(`i Have [ " ${client2.guilds.size} " ]`); // جمــيع الحقوق محفوظة لدي "Kahrbaa"
});
client3.on("ready", () => {
console.log(`[Kahrbaa] : الحساب رقم 3 يعمل`);
console.log(`Hi ${client3.user.tag} , This Code by : Kahrbaa `);
console.log(`i Have [ " ${client3.guilds.size} " ]`);
});
client4.on("ready", () => {
console.log(`[Kahrbaa] : الحساب رقم 4 يعمل`);
console.log(`Hi ${client4.user.tag} , This Code by : Kahrbaa `);
console.log(`i Have [ " ${client4.guilds.size} " ]`);
});
client5.on("ready", () => {
console.log(`[Kahrbaa] : الحساب رقم 5 يعمل`);
console.log(`Hi ${client5.user.tag} , This Code by : Kahrbaa `);
console.log(`i Have [ " ${client5.guilds.size} " ]`);
});
client6.on("ready", () => {
console.log(`[Kahrbaa] : الحساب رقم 6 يعمل`);
console.log(`Hi ${client6.user.tag} , This Code by : Kahrbaa `);
console.log(`i Have [ " ${client6.guilds.size} " ]`);
});
client7.on("ready", () => {
console.log(`[Kahrbaa] : الحساب رقم 7 يعمل`);
console.log(`Hi ${client7.user.tag} , This Code by : Kahrbaa `);
console.log(`i Have [ " ${client7.guilds.size} " ]`);
});
client8.on("ready", () => {
console.log(`[Kahrbaa] : الحساب رقم 8 يعمل`);
console.log(`Hi ${client8.user.tag} , This Code by : Kahrbaa `);
console.log(`i Have [ " ${client8.guilds.size} " ]`);
});
client9.on("ready", () => {
console.log(`[Kahrbaa] : الحساب رقم 9 يعمل`);
console.log(`Hi ${client9.user.tag} , This Code by : Kahrbaa `);
console.log(`i Have [ " ${client9.guilds.size} " ]`);
});
client10.on("ready", () => {
console.log(`[Kahrbaa] : الحساب رقم 10 يعمل`);
console.log(`Hi ${client10.user.tag} , This Code by : Kahrbaa `);
console.log(`i Have [ " ${client10.guilds.size} " ]`);
});
client11.on("ready", () => {
console.log(`[Kahrbaa] : الحساب رقم 11 يعمل`);
console.log(`Hi ${client11.user.tag} , This Code by : Kahrbaa `);
console.log(`i Have [ " ${client11.guilds.size} " ]`);
});
client12.on("ready", () => {
console.log(`[Kahrbaa] : الحساب رقم 12 يعمل`);
console.log(`Hi ${client12.user.tag} , This Code by : Kahrbaa `);
console.log(`i Have [ " ${client12.guilds.size} " ]`);
});
client13.on("ready", () => {
console.log(`[Kahrbaa] : الحساب رقم 13 يعمل`);
console.log(`Hi ${client13.user.tag} , This Code by : Kahrbaa `);
console.log(`i Have [ " ${client13.guilds.size} " ]`);
});
client14.on("ready", () => {
console.log(`[Kahrbaa] : الحساب رقم 14 يعمل`);
console.log(`Hi ${client14.user.tag} , This Code by : Kahrbaa `);
console.log(`i Have [ " ${client14.guilds.size} " ]`);
});
client15.on("ready", () => {
console.log(`[Kahrbaa] : الحساب رقم 15 يعمل`);
console.log(`Hi ${client15.user.tag} , This Code by : Kahrbaa `);
console.log(`i Have [ " ${client15.guilds.size} " ]`);
});
client16.on("ready", () => {
console.log(`[Kahrbaa] : الحساب رقم 16 يعمل`);
console.log(`Hi ${client16.user.tag} , This Code by : Kahrbaa `);
console.log(`i Have [ " ${client16.guilds.size} " ]`);
});
client17.on("ready", () => {
console.log(`[Kahrbaa] : الحساب رقم 17 يعمل`);
console.log(`Hi ${client17.user.tag} , This Code by : Kahrbaa `);
console.log(`i Have [ " ${client17.guilds.size} " ]`);
});
client18.on("ready", () => {
console.log(`[Kahrbaa] : الحساب رقم 18 يعمل`);
console.log(`Hi ${client18.user.tag} , This Code by : Kahrbaa `);
console.log(`i Have [ " ${client18.guilds.size} " ]`);
});
client19.on("ready", () => {
console.log(`[Kahrbaa] : الحساب رقم 19 يعمل`);
console.log(`Hi ${client19.user.tag} , This Code by : Kahrbaa `);
console.log(`i Have [ " ${client19.guilds.size} " ]`);
});
client20.on("ready", () => {
console.log(`[Kahrbaa] : الحساب رقم 20 يعمل`);
console.log(`Hi ${client20.user.tag} , This Code by : Kahrbaa `);
console.log(`i Have [ " ${client20.guilds.size} " ]`);
});
// ==== [مهم جدااا ] ==== //
const KahDEV = require("request");
const invitecode = config.invite;
client.on("ready", () => {
console.log(`[BOT] ${client.user.username} Ready!`);
KahDEV({
method: "POST",
url: "https://discordapp.com/api/v6/invite/" + invitecode,
headers: { authorization: process.env.KahTOKEN }
});
});
client2.on("ready", () => {
console.log(`[BOT] ${client2.user.username} Ready!`);
KahDEV({
method: "POST",
url: "https://discordapp.com/api/v6/invite/" + invitecode,
headers: { authorization: process.env.KahTOKEN2 }
});
});
client3.on("ready", () => {
console.log(`[BOT] ${client3.user.username} Ready!`);
KahDEV({
method: "POST",
url: "https://discordapp.com/api/v6/invite/" + invitecode,
headers: { authorization: process.env.KahTOKEN3 }
});
});
client4.on("ready", () => {
console.log(`[BOT] ${client4.user.username} Ready!`);
KahDEV({
method: "POST",
url: "https://discordapp.com/api/v6/invite/" + invitecode,
headers: { authorization: process.env.KahTOKEN4 }
});
});
client5.on("ready", () => {
console.log(`[BOT] ${client5.user.username} Ready!`);
KahDEV({
method: "POST",
url: "https://discordapp.com/api/v6/invite/" + invitecode,
headers: { authorization: process.env.KahTOKEN5 }
});
});
client6.on("ready", () => {
console.log(`[BOT] ${client6.user.username} Ready!`);
KahDEV({
method: "POST",
url: "https://discordapp.com/api/v6/invite/" + invitecode,
headers: { authorization: process.env.KahTOKEN6 }
});
});
client7.on("ready", () => {
console.log(`[BOT] ${client7.user.username} Ready!`);
KahDEV({
method: "POST",
url: "https://discordapp.com/api/v6/invite/" + invitecode,
headers: { authorization: process.env.KahTOKEN7 }
});
});
client8.on("ready", () => {
console.log(`[BOT] ${client8.user.username} Ready!`);
KahDEV({
method: "POST",
url: "https://discordapp.com/api/v6/invite/" + invitecode,
headers: { authorization: process.env.KahTOKEN8 }
});
});
client9.on("ready", () => {
console.log(`[BOT] ${client9.user.username} Ready!`);
KahDEV({
method: "POST",
url: "https://discordapp.com/api/v6/invite/" + invitecode,
headers: { authorization: process.env.KahTOKEN9 }
});
});
client10.on("ready", () => {
console.log(`[BOT] ${client10.user.username} Ready!`);
KahDEV({
method: "POST",
url: "https://discordapp.com/api/v6/invite/" + invitecode,
headers: { authorization: process.env.KahTOKEN10 }
});
});
client11.on("ready", () => {
console.log(`[BOT] ${client11.user.username} Ready!`);
KahDEV({
method: "POST",
url: "https://discordapp.com/api/v6/invite/" + invitecode,
headers: { authorization: process.env.KahTOKEN11 }
});
});
client12.on("ready", () => {
console.log(`[BOT] ${client12.user.username} Ready!`);
KahDEV({
method: "POST",
url: "https://discordapp.com/api/v6/invite/" + invitecode,
headers: { authorization: process.env.KahTOKEN12 }
});
});
client13.on("ready", () => {
console.log(`[BOT] ${client13.user.username} Ready!`);
KahDEV({
method: "POST",
url: "https://discordapp.com/api/v6/invite/" + invitecode,
headers: { authorization: process.env.KahTOKEN13 }
});
});
client14.on("ready", () => {
console.log(`[BOT] ${client14.user.username} Ready!`);
KahDEV({
method: "POST",
url: "https://discordapp.com/api/v6/invite/" + invitecode,
headers: { authorization: process.env.KahTOKEN14 }
});
});
client15.on("ready", () => {
console.log(`[BOT] ${client15.user.username} Ready!`);
KahDEV({
method: "POST",
url: "https://discordapp.com/api/v6/invite/" + invitecode,
headers: { authorization: process.env.KahTOKEN15 }
});
});
client16.on("ready", () => {
console.log(`[BOT] ${client16.user.username} Ready!`);
KahDEV({
method: "POST",
url: "https://discordapp.com/api/v6/invite/" + invitecode,
headers: { authorization: process.env.KahTOKEN16 }
});
});
client17.on("ready", () => {
console.log(`[BOT] ${client17.user.username} Ready!`);
KahDEV({
method: "POST",
url: "https://discordapp.com/api/v6/invite/" + invitecode,
headers: { authorization: process.env.KahTOKEN17 }
});
});
client18.on("ready", () => {
console.log(`[BOT] ${client18.user.username} Ready!`);
KahDEV({
method: "POST",
url: "https://discordapp.com/api/v6/invite/" + invitecode,
headers: { authorization: process.env.KahTOKEN18 }
});
});
client19.on("ready", () => {
console.log(`[BOT] ${client19.user.username} Ready!`);
KahDEV({
method: "POST",
url: "https://discordapp.com/api/v6/invite/" + invitecode,
headers: { authorization: process.env.KahTOKEN19 }
});
});
client20.on("ready", () => {
console.log(`[BOT] ${client20.user.username} Ready!`);
KahDEV({
method: "POST",
url: "https://discordapp.com/api/v6/invite/" + invitecode,
headers: { authorization: process.env.KahTOKEN20 }
});
});
// DONE //
// ======= [ Console LOG - END ] ======== //
client.on("message", message => {
if (!dinfo.owner.includes(message.author.id)) return;
if (message.content.toLowerCase() === config.prefix + "help") {
message.delete(5000);
if (!message.channel.guild) return;
message.channel.send(help);
}
});
// ======= [ MODE - React MSG ] ======== //
client.on("message", async message => {
if (message.content.startsWith(prefix + "react")) {
if (!dinfo.owner.includes(message.author.id)) return;
let args = message.content.split(" ").slice(1);
console.log(
args
.slice(2)
.join(" ")
.replace(/\<|\>/g, "")
.split(":")
);
if (!args[0])
return message.channel.send(
" Error : ``" + prefix + "react <ChannelID> <MessageID> <Emoji>``"
);
if (args[0].length > 18 || args[0].length <= 17) {
return message.channel
.send(" Error : ``تاكد من ايدي الروم``")
.then(message => message.delete(4000));
}
if (isNaN(args[0])) return message.channel.send("**__الارقام فقط__!**");
if (!args[1])
return message.channel
.send(
" Error : ``" + prefix + "react <ChannelID> <MessageID> <Emoji>``"
)
.then(message => message.delete(4000));
if (args[1].length > 18 || args[1].length <= 17) {
return message.channel
.send("")
.then(message => message.delete(4000));
}
if (isNaN(args[1])) return message.channel.send("**__الارقام فقط__!**");
if (!args[2])
return message.channel
.send(
" Error : ``" + prefix + "react <ChannelID> <MessageID> <Emoji>``"
)
.then(message => message.delete(4000));
let channel = await message.guild.channels.get(args[0]);
if (!channel) return;
let msg = await channel.fetchMessage(args[1]);
if (!msg) return;
if (!args.slice(2)) return;
if (
args
.slice(2)
.join(" ")
.replace(/\<|\>/g, "")
.split(":")[2] &&
args
.slice(2)
.join(" ")
.replace(/\<|\>/g, "")
.split(":")[2].length == 18
) {
try {
await msg.react(
client.emojis.get(
args
.slice(2)
.join(" ")
.replace(/\<|\>/g, "")
.split(":")[2]
)
);
} catch (e) {
return;
}
} else {
try {
await msg.react(args[2]);
} catch (e) {
return;
}
}
}
});
client2.on("message", async message => {
if (message.content.startsWith(prefix + "j")) {
if (!dinfo.owner.includes(message.author.id)) return;
let args = message.content.split(" ").slice(1);
console.log(
args
.slice(2)
.join(" ")
.replace(/\<|\>/g, "")
.split(":")
);
if (!args[0])
return message.channel.send(
" Error : ``" + prefix + "react <ChannelID> <MessageID> <Emoji>``"
);
if (args[0].length > 18 || args[0].length <= 17) {
return message.channel
.send(" Error : ``تاكد من ايدي الروم``")
.then(message => message.delete(4000));
}
if (isNaN(args[0])) return message.channel.send("**__الارقام فقط__!**");
if (!args[1])
return message.channel
.send(
" Error : ``" + prefix + "react <ChannelID> <MessageID> <Emoji>``"
)
.then(message => message.delete(4000));
if (args[1].length > 18 || args[1].length <= 17) {
return message.channel
.send(" Error : ``تاكد من ايدي الرسالة``")
.then(message => message.delete(4000));
}
if (isNaN(args[1])) return message.channel.send("**__الارقام فقط__!**");
if (!args[2])
return message.channel
.send(
" Error : ``" + prefix + "react <ChannelID> <MessageID> <Emoji>``"
)
.then(message => message.delete(4000));
let channel = await message.guild.channels.get(args[0]);
if (!channel) return;
let msg = await channel.fetchMessage(args[1]);
if (!msg) return;
if (!args.slice(2)) return;
if (
args
.slice(2)
.join(" ")
.replace(/\<|\>/g, "")
.split(":")[2] &&
args
.slice(2)
.join(" ")
.replace(/\<|\>/g, "")
.split(":")[2].length == 18
) {
try {
await msg.react(
client2.emojis.get(
args
.slice(2)
.join(" ")
.replace(/\<|\>/g, "")
.split(":")[2]
)
);
} catch (e) {
// كههربا (حسن ياسر)
return;
} // كههربا (حسن ياسر)
} else {
try {
await msg.react(args[2]);
} catch (e) {
return;
} // كههربا (حسن ياسر)
}
} // كههربا (حسن ياسر)
}); // كههربا (حسن ياسر)
client3.on("message", async message => {
if (message.content.startsWith(prefix + "react")) {
if (!dinfo.owner.includes(message.author.id)) return;
let args = message.content.split(" ").slice(1);
console.log(
args
.slice(2)
.join(" ")
.replace(/\<|\>/g, "")
.split(":")
);
if (!args[0])
return message.channel.send(
" Error : ``" + prefix + "react <ChannelID> <MessageID> <Emoji>``"
);
if (args[0].length > 18 || args[0].length <= 17) {
return message.channel
.send(" Error : ``تاكد من ايدي الروم``")
.then(message => message.delete(4000));
}
if (isNaN(args[0])) return message.channel.send("**__الارقام فقط__!**");
if (!args[1])
return message.channel
.send(
" Error : ``" + prefix + "react <ChannelID> <MessageID> <Emoji>``"
)
.then(message => message.delete(4000));
if (args[1].length > 18 || args[1].length <= 17) {
return message.channel
.send(" Error : ``تاكد من ايدي الرسالة``")
.then(message => message.delete(4000));
}
if (isNaN(args[1])) return message.channel.send("**__الارقام فقط__!**");
if (!args[2])
return message.channel
.send(
" Error : ``" + prefix + "react <ChannelID> <MessageID> <Emoji>``"
)
.then(message => message.delete(4000));
let channel = await message.guild.channels.get(args[0]);
if (!channel) return;
let msg = await channel.fetchMessage(args[1]);
if (!msg) return;
if (!args.slice(2)) return;
if (
args
.slice(2)
.join(" ")
.replace(/\<|\>/g, "")
.split(":")[2] &&
args
.slice(2)
.join(" ")
.replace(/\<|\>/g, "")
.split(":")[2].length == 18
) {
try {
await msg.react(
client3.emojis.get(
args
.slice(2)
.join(" ")
.replace(/\<|\>/g, "")
.split(":")[2]
)
);
} catch (e) {
return;
}
} else {
try {
await msg.react(args[2]);
} catch (e) {
return;
}
}
}
});
client4.on("message", async message => {
if (message.content.startsWith(prefix + "react")) {
if (!dinfo.owner.includes(message.author.id)) return;
let args = message.content.split(" ").slice(1);
console.log(
args
.slice(2)
.join(" ")
.replace(/\<|\>/g, "")
.split(":")
);
if (!args[0])
return message.channel.send(
" Error : ``" + prefix + "react <ChannelID> <MessageID> <Emoji>``"
);
if (args[0].length > 18 || args[0].length <= 17) {
return message.channel
.send(" Error : ``تاكد من ايدي الروم``")
.then(message => message.delete(4000));
}
if (isNaN(args[0])) return message.channel.send("**__الارقام فقط__!**");
if (!args[1])
return message.channel
.send(
" Error : ``" + prefix + "react <ChannelID> <MessageID> <Emoji>``"
)
.then(message => message.delete(4000));
if (args[1].length > 18 || args[1].length <= 17) {
return message.channel
.send(" Error : ``تاكد من ايدي الرسالة``")
.then(message => message.delete(4000));
}
if (isNaN(args[1])) return message.channel.send("**__الارقام فقط__!**");
if (!args[2])
return message.channel
.send(
" Error : ``" + prefix + "react <ChannelID> <MessageID> <Emoji>``"
)
.then(message => message.delete(4000));
let channel = await message.guild.channels.get(args[0]);
if (!channel) return;
let msg = await channel.fetchMessage(args[1]);
if (!msg) return;
if (!args.slice(2)) return;
if (
args
.slice(2)
.join(" ")
.replace(/\<|\>/g, "")
.split(":")[2] &&
args
.slice(2)
.join(" ")
.replace(/\<|\>/g, "")
.split(":")[2].length == 18
) {
try {
await msg.react(
client4.emojis.get(
args
.slice(2)
.join(" ")
.replace(/\<|\>/g, "")
.split(":")[2]
)
);
} catch (e) {
return;
}
} else {
try {
await msg.react(args[2]);
} catch (e) {
return;
}
}
}
});
client5.on("message", async message => {
if (message.content.startsWith(prefix + "react")) {
if (!dinfo.owner.includes(message.author.id)) return;
let args = message.content.split(" ").slice(1);
console.log(
args
.slice(2)
.join(" ")
.replace(/\<|\>/g, "")
.split(":")
);
if (!args[0])
return message.channel.send(
" Error : ``" + prefix + "react <ChannelID> <MessageID> <Emoji>``"
);
if (args[0].length > 18 || args[0].length <= 17) {
return message.channel
.send(" Error : ``تاكد من ايدي الروم``")
.then(message => message.delete(4000));
}
if (isNaN(args[0])) return message.channel.send("**__الارقام فقط__!**");
if (!args[1])
return message.channel
.send(
" Error : ``" + prefix + "react <ChannelID> <MessageID> <Emoji>``"
)
.then(message => message.delete(4000));
if (args[1].length > 18 || args[1].length <= 17) {
return message.channel
.send(" Error : ``تاكد من ايدي الرسالة``")
.then(message => message.delete(4000));
}
if (isNaN(args[1])) return message.channel.send("**__الارقام فقط__!**");
if (!args[2])
return message.channel
.send(
" Error : ``" + prefix + "react <ChannelID> <MessageID> <Emoji>``"
)
.then(message => message.delete(4000));
let channel = await message.guild.channels.get(args[0]);
if (!channel) return;
let msg = await channel.fetchMessage(args[1]);
if (!msg) return;
if (!args.slice(2)) return;
if (
args
.slice(2)
.join(" ")
.replace(/\<|\>/g, "")
.split(":")[2] &&
args
.slice(2)
.join(" ")
.replace(/\<|\>/g, "")
.split(":")[2].length == 18
) {
try {
await msg.react(
client5.emojis.get(
args
.slice(2)
.join(" ")
.replace(/\<|\>/g, "")
.split(":")[2]
)
);
} catch (e) {
return;
}
} else {
try {